Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,482 in github.com/crewAIInc/crewAI
⨍
Functions
19,482
◇
Types & classes
3,433
↳
Endpoints
991
Function
test_execute_command_exits_with_a_failed_scripts_code
( _subprocess_run: mock.Mock, _read_toml: mock.Mock, record_run_stopped: mock.Mock, capsys: py
lib/crewai/tests/cli/test_run_crew.py:95
Function
test_execute_command_omits_env_var_when_filename_absent
( _build_env: mock.Mock, subprocess_run: mock.Mock )
lib/crewai/tests/cli/test_run_crew.py:80
Function
test_execute_command_sets_env_var_when_filename_provided
( _build_env: mock.Mock, subprocess_run: mock.Mock )
lib/crewai/tests/cli/test_run_crew.py:61
Method
test_execute_native_tool_falls_back_to_sequential_for_result_as_answer
( self, mock_dependencies )
lib/crewai/tests/agents/test_agent_executor.py:1412
Method
test_execute_native_tool_result_as_answer_short_circuits_remaining_calls
( self, mock_dependencies )
lib/crewai/tests/agents/test_agent_executor.py:1454
Method
test_execute_native_tool_runs_parallel_for_multiple_calls
( self, mock_dependencies )
lib/crewai/tests/agents/test_agent_executor.py:1376
Function
test_execute_task_span_says_what_was_declared_and_what_came_out
( pipeline, declaration, produced, expected )
lib/crewai/tests/telemetry/test_span_task_agent_tool_attributes.py:128
Function
test_execute_with_agent
()
lib/crewai/tests/test_task.py:174
Method
test_execute_with_trigger_api_error
(self, mock_console_print)
lib/cli/tests/triggers/test_main.py:129
Method
test_execute_with_trigger_invalid_format
(self, mock_console_print)
lib/cli/tests/triggers/test_main.py:89
Method
test_execute_with_trigger_not_found
(self, mock_console_print)
lib/cli/tests/triggers/test_main.py:117
Method
test_execute_with_trigger_success
(self, mock_run_crew, mock_console_print)
lib/cli/tests/triggers/test_main.py:99
Method
test_execute_with_trigger_with_default_error_message
(self, mock_console_print)
lib/cli/tests/triggers/test_main.py:177
Method
test_executes_function_with_context
Function executes normally with RequestContext when not cancelled.
lib/crewai/tests/a2a/utils/test_task.py:88
Method
test_executes_function_without_context
Function executes normally when no RequestContext is provided.
lib/crewai/tests/a2a/utils/test_task.py:72
Function
test_execution_failure_clears_buffer_without_consent_or_requests
( collector, monkeypatch, failure )
lib/crewai/tests/telemetry/test_session_trace_export.py:607
Method
test_executor_init_does_not_mutate_shared_llm
Constructing executors must not touch the shared LLM's stop list.
lib/crewai/tests/agents/test_agent.py:3077
Method
test_executor_initialization
Test AgentExecutor initialization.
lib/crewai/tests/agents/test_agent_executor.py:416
Function
test_executor_save_to_memory_calls_extract_then_remember_per_item
_save_to_memory calls memory.extract_memories(raw) then memory.remember(m) for each.
lib/crewai/tests/memory/test_unified_memory.py:600
Function
test_executor_save_to_memory_skips_delegation_output
_save_to_memory does nothing when output contains delegate action.
lib/crewai/tests/memory/test_unified_memory.py:632
Method
test_executor_state_contains_plan_after_planning
Test that executor state contains plan after planning phase.
lib/crewai/tests/agents/test_agent_executor.py:1667
Method
test_exhausts_retries_then_clears_batch_id
After all retries fail, trace_batch_id is None.
lib/crewai/tests/tracing/test_tracing.py:1090
Function
test_existing_collection_does_not_trigger_a_probe
()
lib/crewai/tests/rag/qdrant/test_embedding_adapter.py:72
Method
test_existing_file_reader_keeps_local_access_when_artifact_reader_is_added
( self, tmp_path )
lib/crewai/tests/agents/test_agent_executor.py:2808
Method
test_existing_loose_dir_is_tightened
A pre-existing world-traversable directory is corrected to 0o700.
lib/cli/tests/test_token_manager.py:316
Function
test_existing_output_no_overwrite
(_, __, ___, tool)
lib/crewai-tools/tests/tools/files_compressor_tool_test.py:90
Function
test_exit_hook_returns_as_soon_as_the_flush_succeeds
( live_telemetry: Telemetry, caplog: pytest.LogCaptureFixture )
lib/crewai-core/tests/test_telemetry_shutdown.py:74
Function
test_exit_hook_stops_waiting_at_the_flush_deadline
( live_telemetry: Telemetry, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, )
lib/crewai-core/tests/test_telemetry_shutdown.py:49
Function
test_exit_hook_stops_waiting_at_the_flush_deadline
( live_telemetry, monkeypatch, caplog )
lib/crewai/tests/telemetry/test_export_logs.py:49
Method
test_experiment_results_compare_with_baseline
(self, mock_open, mock_json_load, mock_path_getsize, mock_path_exists, mock_results)
lib/crewai/tests/experimental/evaluation/test_experiment_result.py:56
Function
test_experimental_agent_executor_attribute_still_resolves
1.15.28 and earlier taught `from crewai.experimental import AgentExecutor`.
lib/crewai/tests/test_imports.py:47
Function
test_experimental_agent_executor_module_still_imports
()
lib/crewai/tests/test_imports.py:57
Function
test_experimental_conversational_mixin_aliases_stable_module
()
lib/crewai/tests/test_experimental_conversational_shim.py:42
Function
test_experimental_conversational_module_aliases_stable_module
()
lib/crewai/tests/test_experimental_conversational_shim.py:17
Function
test_experimental_namespace_reexports_public_names
()
lib/crewai/tests/skills/test_experimental_shim.py:4
Function
test_experimental_namespace_reexports_stable_types
()
lib/crewai/tests/test_experimental_conversational_shim.py:24
Function
test_experimental_submodule_imports_alias_real_modules
Old submodule import style must resolve to the crewai.skills modules.
lib/crewai/tests/skills/test_experimental_shim.py:19
Function
test_expired_grant_is_renewed_for_same_execution
(collector)
lib/crewai/tests/telemetry/test_session_trace_export.py:555
Method
test_explain_allowed
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:65
Method
test_explain_analyse_delete_blocked_in_read_only
British spelling ANALYSE is also caught.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:379
Method
test_explain_analyze_delete_allowed_when_dml_enabled
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:399
Method
test_explain_analyze_delete_blocked_in_read_only
EXPLAIN ANALYZE DELETE actually runs the delete — block it.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:373
Method
test_explain_analyze_delete_triggers_commit
EXPLAIN ANALYZE DELETE should trigger commit when allow_dml=True.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:549
Method
test_explain_analyze_drop_blocked_in_read_only
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:385
Method
test_explain_analyze_select_allowed_in_read_only
EXPLAIN ANALYZE on a SELECT is safe — must be permitted.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:390
Method
test_explain_analyze_verbose_delete_blocked
EXPLAIN ANALYZE VERBOSE DELETE should be blocked.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:519
Method
test_explain_analyze_verbose_select_allowed
EXPLAIN ANALYZE VERBOSE SELECT should be allowed (read-only).
lib/crewai-tools/tests/tools/test_nl2sql_security.py:514
Method
test_explain_paren_analyze_delete_blocked_in_read_only
EXPLAIN (ANALYZE) DELETE actually runs the delete — block it.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:403
Method
test_explain_paren_analyze_verbose_delete_blocked_in_read_only
EXPLAIN (ANALYZE, VERBOSE) DELETE actually runs the delete — block it.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:409
Method
test_explain_paren_verbose_select_allowed_in_read_only
EXPLAIN (VERBOSE) SELECT is safe — no ANALYZE means no execution.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:415
Method
test_explain_verbose_select_allowed
EXPLAIN VERBOSE SELECT (no ANALYZE) should be allowed.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:525
Method
test_explain_without_analyze_allowed
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:395
Method
test_explicit_api_key_overrides_env
Test explicit API key overrides environment variable.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:191
Method
test_explicit_base_url_overrides_all
Test explicit base URL overrides env and config.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:226
Method
test_explicit_base_url_uses_organization_from_settings
( self, mock_settings_class )
lib/crewai/tests/cli/test_plus_api.py:417
Method
test_explicit_cache_false_stays_off_even_with_handler
(self)
lib/crewai/tests/test_tool_cache_default.py:184
Function
test_explicit_cel_fields_accept_expression_markers
()
lib/crewai/tests/test_flow_from_definition.py:2943
Method
test_explicit_config_matches_implicit_planning
Agent(planning=True) and Agent(planning=True, planning_config=PlanningConfig()) should produce the same reasoning_effort.
lib/crewai/tests/agents/test_agent_executor.py:3387
Function
test_explicit_context_window_size_does_not_warn
( caplog: pytest.LogCaptureFixture, )
lib/crewai/tests/llms/test_context_window.py:629
Function
test_explicit_context_window_size_is_honored_by_every_provider
( kwargs: dict[str, object], )
lib/crewai/tests/llms/test_context_window.py:493
Function
test_explicit_context_window_size_is_honored_from_an_llm_config_dict
()
lib/crewai/tests/llms/test_context_window.py:772
Function
test_explicit_context_window_size_is_honored_when_building_a_native_class
()
lib/crewai/tests/llms/test_context_window.py:504
Function
test_explicit_context_window_size_is_not_sent_to_the_provider
()
lib/crewai/tests/llms/test_context_window.py:520
Function
test_explicit_context_window_size_moves_the_deferral_and_compaction_gates
()
lib/crewai/tests/llms/test_context_window.py:645
Function
test_explicit_context_window_size_survives_an_agent_checkpoint_round_trip
( kwargs: dict[str, object], )
lib/crewai/tests/llms/test_context_window.py:709
Function
test_explicit_context_window_size_survives_to_config_dict
()
lib/crewai/tests/llms/test_context_window.py:762
Function
test_explicit_custom_openai_uses_legacy_api_base_env_var
Explicit custom routing supports the legacy endpoint environment variable.
lib/crewai/tests/llms/openai/test_openai.py:134
Function
test_explicit_data_definition_uses_project_root_for_custom_tools
( data_project, extension )
lib/crewai/tests/project/test_agent_project.py:174
Function
test_explicit_data_definition_wins_over_default_python
(project)
lib/crewai/tests/project/test_agent_project.py:203
Function
test_explicit_definition_cannot_escape_project
(data_project, tmp_path)
lib/crewai/tests/project/test_agent_project.py:271
Function
test_explicit_disable_prevents_first_time_collection
(monkeypatch, disabled)
lib/crewai/tests/telemetry/test_trace_lifecycle.py:310
Function
test_explicit_doc_id_is_kept
()
lib/crewai/tests/rag/qdrant/test_embedding_adapter.py:153
Function
test_explicit_embedding_callable_does_not_need_chromadb
(monkeypatch)
lib/crewai/tests/rag/embeddings/test_chromadb_optional_providers.py:130
Method
test_explicit_flag_without_a_config_still_opts_in
(self)
lib/crewai/tests/test_flow_conversation.py:2327
Function
test_explicit_headers_are_not_replaced_by_the_environment
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/tools/test_weaviate_tool.py:21
Function
test_explicit_headers_do_not_require_openai_env
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/tools/test_weaviate_tool.py:32
Method
test_explicit_key_is_used_unchanged
(self)
lib/crewai/tests/llms/test_missing_api_key.py:426
Method
test_explicit_kwargs_override_introspection
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:217
Function
test_explicit_llm_is_used_over_complexity_map
An explicitly provided LLM takes precedence over the complexity map.
lib/crewai-tools/tests/tools/test_vision_tool.py:21
Method
test_explicit_max_tokens_takes_precedence
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:313
Function
test_explicit_model_overrides_complexity_map
VisionTool(model="custom") must use "custom", not the complexity map.
lib/crewai-tools/tests/tools/test_vision_tool.py:33
Method
test_explicit_organization_uses_base_url_from_settings
( self, mock_settings_class )
lib/crewai/tests/cli/test_plus_api.py:429
Function
test_explicit_path_is_used_as_given
(tmp_path, monkeypatch)
lib/crewai/tests/rag/qdrant/test_local_client_sharing.py:182
Method
test_explicit_provider_creates_native_snowflake_provider
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/llms/snowflake/test_snowflake.py:121
Function
test_explicit_provider_kwarg_takes_priority
Test that explicit provider kwarg takes priority over model name inference.
lib/crewai/tests/test_llm.py:1227
Method
test_explicit_public_visibility_still_publishes
(self)
lib/crewai/tests/test_flow_conversation.py:3651
Function
test_explicit_python_definition_loads_selected_filename
(data_project, filename)
lib/crewai/tests/project/test_agent_project.py:281
Function
test_explicit_python_filename_supports_relative_imports
(project)
lib/crewai/tests/project/test_agent_project.py:210
Function
test_explicit_qdrant_embedder_is_wrapped_for_the_qdrant_client
(created_config)
lib/crewai-tools/tests/tools/rag/test_rag_tool_default_provider.py:64
Method
test_explicit_responses_is_honoured
(self)
lib/crewai/tests/llms/openai/test_responses_only_models.py:177
Method
test_explicit_result_schema_wins_over_return_annotation
(self)
lib/crewai/tests/tools/test_base_tool.py:534
Method
test_explicit_setting_is_forwarded_whatever_the_name
(self, model)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:458
Function
test_explicit_storage_bypasses_factory
()
lib/crewai/tests/knowledge/test_storage_factory.py:93
Function
test_explicit_storage_instance_bypasses_factory
()
lib/crewai/tests/memory/test_storage_factory.py:58
Method
test_explicit_string_wins_over_model_env
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/test_human_feedback_decorator.py:169
Method
test_explicit_target_takes_precedence
(self)
lib/crewai/tests/cli/test_plus_api.py:404
Function
test_explicit_trace_scope_wins_over_legacy_flags
(scope, expected, legacy_defer)
lib/crewai/tests/test_flow_conversation.py:3776
Method
test_explicit_type
(self)
lib/crewai-tools/tests/rag/test_data_types.py:44
Function
test_explicit_vectors_config_wins_over_embedder_dimension
()
lib/crewai/tests/rag/qdrant/test_embedding_adapter.py:83
Method
test_export_evaluation
(self, mock_make_request)
lib/cli/tests/test_plus_api.py:125
← previous
next →
13,501–13,600 of 19,482, ranked by callers