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_crew_prepare_tools_warns_on_empty_apps
(monkeypatch)
lib/crewai/tests/agents/test_agent.py:2988
Method
test_crew_preserves_preloaded_metadata_skill
(self, tmp_path: Path)
lib/crewai/tests/skills/test_integration.py:179
Method
test_crew_rejects_absolute_input_file_outside_project
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:715
Method
test_crew_rejects_callable_python_ref_for_object_field
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/project/test_crew_loader.py:627
Method
test_crew_rejects_file_uri_input_file_outside_project
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:739
Method
test_crew_rejects_relative_input_file_outside_project
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:692
Method
test_crew_rejects_stdlib_python_ref_for_agent_callback
( self, tmp_path: Path )
lib/crewai/tests/project/test_crew_loader.py:565
Method
test_crew_rejects_stdlib_python_ref_for_mcp_tool_filter
( self, tmp_path: Path )
lib/crewai/tests/project/test_crew_loader.py:593
Method
test_crew_rejects_windows_input_file_outside_project
( self, tmp_path: Path, outside_path: str )
lib/crewai/tests/project/test_crew_loader.py:772
Function
test_crew_replay_error
(researcher, writer)
lib/crewai/tests/test_crew.py:3508
Method
test_crew_resolves_inline_skill_string
(self)
lib/crewai/tests/skills/test_integration.py:150
Method
test_crew_respects_existing_root_scope
User-provided Memory with existing root_scope is not overwritten.
lib/crewai/tests/memory/test_memory_root_scope.py:483
Method
test_crew_restores_external_module_cache_after_project_ref
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/project/test_crew_loader.py:797
Method
test_crew_run_dispatches_only_the_crews_own_points
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:302
Method
test_crew_sanitizes_name_for_root_scope
Crew name with special chars is sanitized for root_scope.
lib/crewai/tests/memory/test_memory_root_scope.py:521
Method
test_crew_scoped_hook_has_access_to_self
Test that crew-scoped hooks can access self and instance variables.
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:68
Method
test_crew_scoped_hook_is_registered_on_instance_creation
Test that crew-scoped hooks are registered when crew instance is created.
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:42
Method
test_crew_scoped_hook_method_signature
Test that crew-scoped hooks have correct signature (self + context).
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:238
Method
test_crew_scoped_hook_no_double_registration
Test that crew-scoped hooks are not registered twice.
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:209
Method
test_crew_scoped_hook_with_filters
Test that filtered crew-scoped hooks work correctly.
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:169
Method
test_crew_scoped_with_agent_filter
Test crew-scoped hooks with agent filters.
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:265
Method
test_crew_status_by_name
(self, mock_make_request)
lib/cli/tests/test_plus_api.py:403
Method
test_crew_status_by_name
(self, mock_make_request)
lib/crewai/tests/cli/test_plus_api.py:289
Method
test_crew_status_by_uuid
(self, mock_make_request)
lib/cli/tests/test_plus_api.py:410
Method
test_crew_status_by_uuid
(self, mock_make_request)
lib/crewai/tests/cli/test_plus_api.py:296
Function
test_crew_success
Test the crew function for successful execution.
lib/cli/tests/test_crew_test.py:18
Method
test_crew_success_fires_completed_once
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:446
Function
test_crew_task_db_init
()
lib/crewai/tests/test_crew.py:3526
Function
test_crew_task_raises_typed_error_after_two_empty_answers
()
lib/crewai/tests/agents/test_empty_llm_response_retry.py:477
Function
test_crew_task_recovers_from_one_empty_answer
(use_async: bool)
lib/crewai/tests/agents/test_empty_llm_response_retry.py:463
Function
test_crew_test_setup_failure_pairs_events
A failure during test() setup must still pair Started with Failed. crew_test_failed is scope-ending: the start event used to be emitted only
lib/crewai/tests/test_crew.py:4304
Function
test_crew_testing_function
(researcher)
lib/crewai/tests/test_crew.py:4263
Function
test_crew_train_error
(researcher, writer)
lib/crewai/tests/test_crew.py:3020
Function
test_crew_train_success
(researcher, writer, monkeypatch)
lib/crewai/tests/test_crew.py:2974
Function
test_crew_trained_agents_file_is_preserved_on_copy
(researcher)
lib/crewai/tests/test_crew.py:3069
Method
test_crew_true
(self)
lib/crewai/tests/test_checkpoint.py:70
Method
test_crew_true_agent_false_opts_out
(self)
lib/crewai/tests/test_checkpoint.py:76
Method
test_crew_verbose_and_memory_flags
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:943
Function
test_crew_verbose_output
(researcher, writer, capsys)
lib/crewai/tests/test_crew.py:802
Method
test_crew_with_default_inputs
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:186
Function
test_crew_with_delegating_agents
(ceo, writer)
lib/crewai/tests/test_crew.py:551
Function
test_crew_with_delegating_agents_should_not_override_agent_tools
(ceo, writer)
lib/crewai/tests/test_crew.py:628
Function
test_crew_with_delegating_agents_should_not_override_task_tools
(ceo, writer)
lib/crewai/tests/test_crew.py:574
Function
test_crew_with_deterministic_fingerprint
Test using deterministic fingerprints with crews.
lib/crewai/tests/security/test_deterministic_fingerprints.py:96
Function
test_crew_with_failing_task_guardrails
Test that crew properly handles failing guardrails and retries with validation feedback.
lib/crewai/tests/test_crew.py:4685
Function
test_crew_with_knowledge_sources_works_with_copy
(researcher, writer)
lib/crewai/tests/test_crew.py:4894
Method
test_crew_with_multiple_agents
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:209
Function
test_crew_with_only_conditional_tasks_raises_error
Test that creating a crew with only conditional tasks raises an error.
lib/crewai/tests/test_crew.py:92
Method
test_crew_with_output_file
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:381
Function
test_crew_with_security_config
Test creating a Crew with a SecurityConfig.
lib/crewai/tests/security/test_integration.py:35
Function
test_crew_with_streaming_litellm_agent_fails_task_with_provider_error
()
lib/crewai/tests/test_llm_litellm_streaming_errors.py:271
Method
test_crew_without_name_uses_default
Crew without name uses 'crew' as default for root_scope.
lib/crewai/tests/memory/test_memory_root_scope.py:694
Function
test_crewai_create_flow_with_a_provider_with_no_listed_model_exits_two
( tmp_path: Path, monkeypatch: MonkeyPatch )
lib/cli/tests/test_create_flow.py:515
Function
test_crewai_create_flow_without_a_terminal_exits_zero_with_next_steps
( tmp_path: Path, monkeypatch: MonkeyPatch, no_provider_keys: None )
lib/cli/tests/test_create_flow.py:332
Function
test_crewai_drops_a_paste_marker_it_inherited
Only a key pasted at this process's prompt may outlast a `.env` that holds no key; a launcher must not be able to claim one was.
lib/cli/tests/test_cli.py:1064
Function
test_crewai_extras_add_litellm_for_a_name_the_native_provider_does_not_take
( model: str, extras: set[str] )
lib/cli/tests/test_constants.py:249
Function
test_crewai_extras_add_litellm_for_a_prefix_crewai_has_no_native_provider_for
crewAI sends these to LiteLLM, so a project created without the extra fails on its first run.
lib/cli/tests/test_constants.py:275
Function
test_crewai_extras_for_a_bare_or_unknown_model
( model: str, extras: set[str] )
lib/cli/tests/test_constants.py:266
Function
test_crewai_extras_for_a_model_its_provider_runs_natively
( model: str, extras: set[str] )
lib/cli/tests/test_constants.py:230
Function
test_crewai_imports_when_chromadb_is_unavailable
()
lib/crewai/tests/rag/config/test_chromadb_optional.py:19
Function
test_crewai_pins_every_workspace_sibling_to_its_own_version
()
lib/devtools/tests/test_toml_updates.py:641
Method
test_crewai_platform_tools_api_error_handling
(self, mock_get)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:157
Method
test_crewai_platform_tools_basic
(self, mock_get)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:12
Method
test_crewai_platform_tools_empty_apps
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:139
Method
test_crewai_platform_tools_multiple_apps
(self, mock_get)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:26
Method
test_crewai_platform_tools_no_token
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:163
Function
test_crewai_run_inputs_kick_off_the_scaffolded_flow
( scaffolded_flow_main: ModuleType, tmp_path: Path, monkeypatch: MonkeyPatch )
lib/cli/tests/test_create_flow.py:732
Function
test_crewai_run_inputs_reach_a_flow_whose_kickoff_ignores_them
A project whose `kickoff()` was written before `--inputs` reached Python flows: the flow class is kicked off directly, as AMP does, so the inputs
lib/cli/tests/test_create_flow.py:743
Function
test_crewais_own_agent_executor_is_tagged_internal
The agent executor is a Flow and runs once per agent execution. Without an origin tag it is indistinguishable from a user's flows in the dail
lib/crewai/tests/telemetry/test_flow_telemetry.py:507
Function
test_crewais_trace_provider_records_with_the_sdk_switched_off
Pins the SDK detail the provider relies on (its private `_disabled`).
lib/crewai/tests/telemetry/test_deferred_trace_transitions.py:342
Method
test_crlf_frontmatter_and_body
(self)
lib/crewai/tests/skills/test_parser.py:28
Function
test_crlf_line_endings_are_preserved
read_text/write_text would silently rewrite the whole file as LF.
lib/crewai/tests/telemetry/test_project_id.py:252
Method
test_csv_file_not_found_raises_error
Test that non-existent CSV file raises FileNotFoundError.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:306
Function
test_csv_knowledge_source
Test CSVKnowledgeSource with a simple CSV file.
lib/crewai/tests/knowledge/test_knowledge.py:420
Method
test_csv_loader_handles_http_error
(self, mock_get)
lib/crewai-tools/tests/rag/test_csv_loader.py:124
Method
test_csv_loader_handles_network_errors
(self, mock_get)
lib/crewai-tools/tests/rag/test_csv_loader.py:116
Function
test_csv_preserves_quoted_newlines
( newline: str, source_kind: str, tmp_path: Path )
lib/crewai-tools/tests/rag/test_csv_loader_newlines.py:41
Function
test_csv_record_newlines
( newline: str, source_kind: str, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/crewai-tools/tests/rag/test_csv_loader_newlines.py:11
Function
test_csv_search_tool
()
lib/crewai-tools/tests/tools/test_search_tools.py:140
Method
test_csv_string
Test data_type='csv' with existing CSV file.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:135
Method
test_cte_string_paren_does_not_bypass
Parens inside string literals should not confuse the paren walker.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:532
Method
test_cte_string_paren_read_only_allowed
Read-only CTE with string literal parens should be allowed.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:540
Method
test_cte_with_comment_column_not_false_positive
Column named 'comment' should NOT trigger writable CTE detection.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:324
Method
test_cte_with_newline_before_paren_blocked
AS followed by newline then ( should still detect writable CTE.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:355
Method
test_cte_with_set_column_not_false_positive
Column named 'set' should NOT trigger writable CTE detection.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:332
Method
test_cte_with_tab_before_paren_blocked
AS followed by tab then ( should still detect writable CTE.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:363
Method
test_cte_with_write_main_query_allowed_with_dml
Main query write after CTE should pass when allow_dml=True.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:348
Method
test_cte_with_write_main_query_blocked
WITH cte AS (SELECT 1) DELETE FROM users — main query must be caught.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:340
Function
test_ctrl_c_leaves_the_evaluation_running_and_exits_130
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:803
Method
test_cumulative_usage_via_add_usage_metrics
(self)
lib/crewai/tests/events/test_llm_usage_event.py:401
Function
test_curated_fallback_preferred_over_litellm
(monkeypatch)
lib/cli/tests/test_model_catalog.py:441
Function
test_curated_label_overrides_raw_vendor_label
(monkeypatch)
lib/cli/tests/test_model_catalog.py:347
Function
test_current_1m_anthropic_models_use_1m_context_window
(model: str)
lib/crewai/tests/llms/anthropic/test_anthropic.py:146
Function
test_current_claude_models_route_to_anthropic
Current Claude models are in the constants list and use the Anthropic SDK.
lib/crewai/tests/test_llm.py:1166
Function
test_current_method_clears_and_falls_back_across_overlap
()
lib/cli/tests/test_crew_run_tui.py:2257
Method
test_current_organization_with_org
(self, mock_settings_class, mock_console)
lib/cli/tests/organization/test_main.py:177
Method
test_current_organization_without_org
(self, mock_settings_class, mock_console)
lib/cli/tests/organization/test_main.py:192
Method
test_current_todo_property
Test current_todo returns the running item.
lib/crewai/tests/utilities/test_planning_types.py:180
Method
test_current_todo_returns_none_when_no_running
Test current_todo returns None when no running items.
lib/crewai/tests/utilities/test_planning_types.py:187
Method
test_custom_agent_output_formatter_carries_over_to_structured_tool
( self, )
lib/crewai/tests/tools/test_base_tool.py:599
← previous
next →
12,701–12,800 of 19,482, ranked by callers