Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,735 in github.com/crewAIInc/crewAI
⨍
Functions
19,735
◇
Types & classes
3,466
↳
Endpoints
994
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
Method
test_custom_agent_output_formatter_is_used_from_structured_tool
( self, )
lib/crewai/tests/utilities/test_agent_utils.py:980
Method
test_custom_agents_dir
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:921
Method
test_custom_and_default_headers
(self, mock_get)
lib/crewai-tools/tests/rag/test_webpage_loader.py:94
Method
test_custom_and_default_headers
(self, mock_get)
lib/crewai-tools/tests/rag/test_xml_loader.py:94
Function
test_custom_backend_is_used
()
lib/crewai/tests/utilities/test_lock_store.py:82
Function
test_custom_base_llm_honors_explicit_context_window_size
()
lib/crewai/tests/llms/test_context_window.py:534
Method
test_custom_base_url
(self, mock_settings_class)
lib/cli/tests/test_plus_api.py:501
Method
test_custom_base_url
(self, mock_settings_class)
lib/crewai/tests/cli/test_plus_api.py:385
Method
test_custom_base_url_from_env
(self)
lib/cli/tests/test_plus_api.py:512
Method
test_custom_base_url_from_env
(self)
lib/crewai/tests/cli/test_plus_api.py:396
Function
test_custom_base_url_from_environment
(custom_url_tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:36
Function
test_custom_base_url_usage
(mock_post, custom_url_tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:118
Function
test_custom_cache_function_requires_opt_in
()
lib/crewai/tests/tools/test_deserialization_guard.py:83
Method
test_custom_config
Test custom configuration values.
lib/crewai-files/tests/test_resolver.py:38
Method
test_custom_config
Test custom configuration values.
lib/crewai-tools/tests/rag/test_embedding_service.py:27
Function
test_custom_constructor_args
()
lib/crewai-tools/tests/tools/brave_search_tool_test.py:121
Function
test_custom_converter_cls
()
lib/crewai/tests/test_task.py:811
Function
test_custom_embedding_does_not_declare_openai_key_required
(monkeypatch)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:1503
Method
test_custom_endpoint_never_falls_back
An OpenAI-compatible server may not implement /v1/responses at all. Most (vLLM, LiteLLM proxies, Ollama) don't, so a self-hosted model must
lib/crewai/tests/llms/openai/test_responses_only_models.py:123
Method
test_custom_headers
(self)
lib/crewai-tools/tests/rag/test_text_loaders.py:131
Function
test_custom_headers_are_merged_over_defaults
Caller headers win, but the default User-Agent survives.
lib/crewai-tools/tests/url_read_tool_test.py:352
Method
test_custom_headers_merged_with_defaults
Test custom headers are merged with provider defaults.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:254
Method
test_custom_listen_return_emits_one_user_and_one_assistant_message_event
( self, tmp_path: Any )
lib/crewai/tests/test_flow_conversation.py:1684
Method
test_custom_listen_return_persists_across_fresh_instances
( self, tmp_path: Any )
lib/crewai/tests/test_flow_conversation.py:1619
Function
test_custom_llm
()
lib/crewai/tests/agents/test_agent.py:195
Function
test_custom_llm_implementation
Test that a custom LLM implementation works with create_llm.
lib/crewai/tests/test_custom_llm.py:84
Function
test_custom_llm_message_formatting
Test that the custom LLM properly formats messages
lib/crewai/tests/test_custom_llm.py:129
Function
test_custom_llm_with_jwt_auth
Test a custom LLM implementation with JWT authentication.
lib/crewai/tests/test_custom_llm.py:218
Function
test_custom_llm_within_crew
Test that a custom LLM implementation works with create_llm.
lib/crewai/tests/test_custom_llm.py:100
Function
test_custom_max_seconds
(mock_sleep)
lib/crewai-tools/tests/tools/wait_tool_test.py:34
Function
test_custom_openai_config_preserves_resolved_endpoint
Serialized custom OpenAI configs can reconstruct the same endpoint.
lib/crewai/tests/llms/openai/test_openai.py:176
Function
test_custom_openai_flag_requires_custom_base_url
Avoid routing arbitrary custom model ids to api.openai.com by mistake.
lib/crewai/tests/llms/openai/test_openai.py:83
Function
test_custom_openai_flag_strips_openai_routing_prefix
The openai/ routing prefix is not part of the gateway's model id.
lib/crewai/tests/llms/openai/test_openai.py:104
Function
test_custom_openai_flag_uses_native_openai_without_provider_prefix
Custom OpenAI-compatible endpoints can serve arbitrary model ids.
lib/crewai/tests/llms/openai/test_openai.py:40
Method
test_custom_provider_satisfies_protocol
A class with request_input satisfies the InputProvider protocol.
lib/crewai/tests/test_flow_ask.py:911
Method
test_custom_route_still_runs_with_builtin_routes
(self)
lib/crewai/tests/test_flow_conversation.py:984
Method
test_custom_tool_resolves
(self, tmp_path, monkeypatch)
lib/crewai/tests/project/test_json_loader.py:546
Method
test_custom_tool_without_basetool_subclass_raises
(self, tmp_path, monkeypatch)
lib/crewai/tests/project/test_json_loader.py:535
Method
test_custom_values
Test custom configuration values.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:112
Function
test_cyclic_flow
Test a cyclic flow that runs a finite number of iterations.
lib/crewai/tests/test_flow.py:74
Function
test_cyclic_flow_multiple_or_listeners_fire_every_iteration
Test that multiple or_() listeners all reset between cycle iterations. Mirrors a real-world pattern: a router classifies messages, handlers proce
lib/crewai/tests/test_flow.py:2091
Function
test_cyclic_flow_or_listeners_fire_every_iteration
Test that or_() listeners reset between cycle iterations through a router. Regression test for a bug where _fired_or_listeners was not cleared wh
lib/crewai/tests/test_flow.py:2021
Function
test_cyclic_flow_parity
()
lib/crewai/tests/test_flow_from_definition.py:590
Function
test_cyclic_flow_re_executes_on_each_iteration
Test that cyclic flows properly re-execute methods on each iteration.
lib/crewai/tests/test_flow_resumability_regression.py:56
Function
test_cyclic_flow_with_conditional_start
Test that cyclic flows work properly with conditional start methods.
lib/crewai/tests/test_flow_resumability_regression.py:135
Function
test_cyclic_flow_works_with_persist_and_id_input
Cyclic router flows must complete all iterations when persistence is enabled and 'id' is passed in inputs. Regression test: passing ``inputs=
lib/crewai/tests/test_flow.py:2145
Method
test_dangling_reference_ignored
Edge to a non-existent node should not be wired.
lib/crewai/tests/test_event_record.py:178
Method
test_dashscope_config
Test Dashscope provider configuration.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:93
Function
test_database_errors_propagate
Verify search, ingestion, and indexing errors reach the caller.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:262
Function
test_database_file_is_not_locked_after_use
The database file can be removed right after use, without a GC pass. This is the user-visible symptom on Windows, where an open handle blocks
lib/crewai/tests/storage/test_kickoff_task_outputs_storage.py:60
Function
test_dataclass_serialization_recurses_into_nested_values
()
lib/crewai/tests/utilities/test_serialization.py:131
Method
test_datatype_directory_enum
Test data_type=DataType.DIRECTORY with existing directory.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:260
Method
test_datatype_file_enum_with_existing_file
Test data_type=DataType.FILE with existing file (auto-detect).
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:197
Method
test_datatype_file_enum_with_nonexistent_file_raises_error
Test data_type=DataType.FILE raises FileNotFoundError for missing files.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:209
Method
test_datatype_pdf_file_enum
Test data_type=DataType.PDF_FILE with existing file.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:216
Method
test_datatype_text_enum
Test data_type=DataType.TEXT with raw text.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:252
Method
test_datatype_text_file_enum
Test data_type=DataType.TEXT_FILE with existing file.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:240
Method
test_date_format
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:208
Method
test_datetime_format
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:220
Method
test_day_first_slash_dates_in_a_comma_file_read_day_first
Comma files once always read slash dates month-first, so 25/12 failed.
lib/crewai-files/tests/spreadsheets/test_reading.py:548
Method
test_days
(self)
lib/crewai/tests/test_checkpoint_cli.py:129
Method
test_declaration_drives_deferred_trace_finalization
(self)
lib/crewai/tests/test_flow_conversation.py:2526
Method
test_declaration_enables_conversational_mode
(self)
lib/crewai/tests/test_flow_conversation.py:2483
Method
test_declaration_marks_the_instance_conversational
(self)
lib/crewai/tests/test_flow_conversation.py:3056
Method
test_declaration_orders_the_router_last_and_sequentially
(self)
lib/crewai/tests/test_flow_conversation.py:2537
Method
test_declaration_runs_a_turn_and_accumulates_history
(self)
lib/crewai/tests/test_flow_conversation.py:2508
Method
test_declaration_with_enabled_false_stays_non_conversational
(self)
lib/crewai/tests/test_flow_conversation.py:2488
Function
test_declarative_agent_action_saves_artifact
(tmp_path, monkeypatch)
lib/crewai/tests/test_artifacts.py:436
Function
test_declarative_agent_artifact_file_path_uses_flow_expressions
(tmp_path, monkeypatch)
lib/crewai/tests/test_artifacts.py:562
Function
test_declarative_agent_reads_artifacts_as_input_files
(store)
lib/crewai/tests/test_artifacts.py:1004
Function
test_declarative_agent_validation_does_not_execute_python
(project, import_probe, reference)
lib/cli/tests/deploy/test_agent_import_security.py:110
Function
test_declarative_agent_validation_reports_missing_tools
(project, import_probe)
lib/cli/tests/deploy/test_agent_import_security.py:142
Function
test_declarative_artifact_input_is_validated_when_loaded
(reference)
lib/crewai/tests/test_artifacts.py:1033
Function
test_declarative_artifact_input_that_is_missing_fails_the_step
(store)
lib/crewai/tests/test_artifacts.py:1021
Function
test_declarative_file_path_from_state_cannot_escape
(tmp_path, monkeypatch)
lib/crewai/tests/test_artifacts.py:653
Function
test_declarative_flow_runs_on_tui
End-to-end: on_mount dispatches _run_flow_worker → flow.kickoff → _on_crew_done, and any still-active step is swept to done on completion.
lib/cli/tests/test_crew_run_tui.py:2368
Function
test_declarative_trace_scope_and_class_precedence
()
lib/crewai/tests/test_flow_conversation.py:3787
Method
test_declared_builtin_routes_are_not_mistaken_for_custom_ones
A declaration adding a builtin route must not auto-enable the router. ``route_turn`` used to subtract the class attribute while ``_ef
lib/crewai/tests/test_flow_conversation.py:3120
← previous
next →
12,901–13,000 of 19,735, ranked by callers