MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Functiontest_csv_search_tool
()
lib/crewai-tools/tests/tools/test_search_tools.py:140
Methodtest_csv_string
Test data_type='csv' with existing CSV file.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:135
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Functiontest_ctrl_c_leaves_the_evaluation_running_and_exits_130
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:803
Methodtest_cumulative_usage_via_add_usage_metrics
(self)
lib/crewai/tests/events/test_llm_usage_event.py:401
Functiontest_curated_fallback_preferred_over_litellm
(monkeypatch)
lib/cli/tests/test_model_catalog.py:441
Functiontest_curated_label_overrides_raw_vendor_label
(monkeypatch)
lib/cli/tests/test_model_catalog.py:347
Functiontest_current_1m_anthropic_models_use_1m_context_window
(model: str)
lib/crewai/tests/llms/anthropic/test_anthropic.py:146
Functiontest_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
Functiontest_current_method_clears_and_falls_back_across_overlap
()
lib/cli/tests/test_crew_run_tui.py:2257
Methodtest_current_organization_with_org
(self, mock_settings_class, mock_console)
lib/cli/tests/organization/test_main.py:177
Methodtest_current_organization_without_org
(self, mock_settings_class, mock_console)
lib/cli/tests/organization/test_main.py:192
Methodtest_current_todo_property
Test current_todo returns the running item.
lib/crewai/tests/utilities/test_planning_types.py:180
Methodtest_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
Methodtest_custom_agent_output_formatter_carries_over_to_structured_tool
( self, )
lib/crewai/tests/tools/test_base_tool.py:599
Methodtest_custom_agent_output_formatter_is_used_from_structured_tool
( self, )
lib/crewai/tests/utilities/test_agent_utils.py:980
Methodtest_custom_agents_dir
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:921
Methodtest_custom_and_default_headers
(self, mock_get)
lib/crewai-tools/tests/rag/test_webpage_loader.py:94
Methodtest_custom_and_default_headers
(self, mock_get)
lib/crewai-tools/tests/rag/test_xml_loader.py:94
Functiontest_custom_backend_is_used
()
lib/crewai/tests/utilities/test_lock_store.py:82
Functiontest_custom_base_llm_honors_explicit_context_window_size
()
lib/crewai/tests/llms/test_context_window.py:534
Methodtest_custom_base_url
(self, mock_settings_class)
lib/cli/tests/test_plus_api.py:501
Methodtest_custom_base_url
(self, mock_settings_class)
lib/crewai/tests/cli/test_plus_api.py:385
Methodtest_custom_base_url_from_env
(self)
lib/cli/tests/test_plus_api.py:512
Methodtest_custom_base_url_from_env
(self)
lib/crewai/tests/cli/test_plus_api.py:396
Functiontest_custom_base_url_from_environment
(custom_url_tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:36
Functiontest_custom_base_url_usage
(mock_post, custom_url_tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:118
Functiontest_custom_cache_function_requires_opt_in
()
lib/crewai/tests/tools/test_deserialization_guard.py:83
Methodtest_custom_config
Test custom configuration values.
lib/crewai-files/tests/test_resolver.py:38
Methodtest_custom_config
Test custom configuration values.
lib/crewai-tools/tests/rag/test_embedding_service.py:27
Functiontest_custom_constructor_args
()
lib/crewai-tools/tests/tools/brave_search_tool_test.py:121
Functiontest_custom_converter_cls
()
lib/crewai/tests/test_task.py:811
Functiontest_custom_embedding_does_not_declare_openai_key_required
(monkeypatch)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:1503
Methodtest_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
Methodtest_custom_headers
(self)
lib/crewai-tools/tests/rag/test_text_loaders.py:131
Functiontest_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
Methodtest_custom_headers_merged_with_defaults
Test custom headers are merged with provider defaults.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:254
Methodtest_custom_listen_return_emits_one_user_and_one_assistant_message_event
( self, tmp_path: Any )
lib/crewai/tests/test_flow_conversation.py:1684
Methodtest_custom_listen_return_persists_across_fresh_instances
( self, tmp_path: Any )
lib/crewai/tests/test_flow_conversation.py:1619
Functiontest_custom_llm
()
lib/crewai/tests/agents/test_agent.py:195
Functiontest_custom_llm_implementation
Test that a custom LLM implementation works with create_llm.
lib/crewai/tests/test_custom_llm.py:84
Functiontest_custom_llm_message_formatting
Test that the custom LLM properly formats messages
lib/crewai/tests/test_custom_llm.py:129
Functiontest_custom_llm_with_jwt_auth
Test a custom LLM implementation with JWT authentication.
lib/crewai/tests/test_custom_llm.py:218
Functiontest_custom_llm_within_crew
Test that a custom LLM implementation works with create_llm.
lib/crewai/tests/test_custom_llm.py:100
Functiontest_custom_max_seconds
(mock_sleep)
lib/crewai-tools/tests/tools/wait_tool_test.py:34
Functiontest_custom_openai_config_preserves_resolved_endpoint
Serialized custom OpenAI configs can reconstruct the same endpoint.
lib/crewai/tests/llms/openai/test_openai.py:176
Functiontest_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
Functiontest_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
Functiontest_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
Methodtest_custom_provider_satisfies_protocol
A class with request_input satisfies the InputProvider protocol.
lib/crewai/tests/test_flow_ask.py:911
Methodtest_custom_route_still_runs_with_builtin_routes
(self)
lib/crewai/tests/test_flow_conversation.py:984
Methodtest_custom_tool_resolves
(self, tmp_path, monkeypatch)
lib/crewai/tests/project/test_json_loader.py:546
Methodtest_custom_tool_without_basetool_subclass_raises
(self, tmp_path, monkeypatch)
lib/crewai/tests/project/test_json_loader.py:535
Methodtest_custom_values
Test custom configuration values.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:112
Functiontest_cyclic_flow
Test a cyclic flow that runs a finite number of iterations.
lib/crewai/tests/test_flow.py:74
Functiontest_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
Functiontest_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
Functiontest_cyclic_flow_parity
()
lib/crewai/tests/test_flow_from_definition.py:590
Functiontest_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
Functiontest_cyclic_flow_with_conditional_start
Test that cyclic flows work properly with conditional start methods.
lib/crewai/tests/test_flow_resumability_regression.py:135
Functiontest_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
Methodtest_dangling_reference_ignored
Edge to a non-existent node should not be wired.
lib/crewai/tests/test_event_record.py:178
Methodtest_dashscope_config
Test Dashscope provider configuration.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:93
Functiontest_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
Functiontest_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
Functiontest_dataclass_serialization_recurses_into_nested_values
()
lib/crewai/tests/utilities/test_serialization.py:131
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_date_format
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:208
Methodtest_datetime_format
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:220
Methodtest_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
Methodtest_days
(self)
lib/crewai/tests/test_checkpoint_cli.py:129
Methodtest_declaration_drives_deferred_trace_finalization
(self)
lib/crewai/tests/test_flow_conversation.py:2526
Methodtest_declaration_enables_conversational_mode
(self)
lib/crewai/tests/test_flow_conversation.py:2483
Methodtest_declaration_marks_the_instance_conversational
(self)
lib/crewai/tests/test_flow_conversation.py:3056
Methodtest_declaration_orders_the_router_last_and_sequentially
(self)
lib/crewai/tests/test_flow_conversation.py:2537
Methodtest_declaration_runs_a_turn_and_accumulates_history
(self)
lib/crewai/tests/test_flow_conversation.py:2508
Methodtest_declaration_with_enabled_false_stays_non_conversational
(self)
lib/crewai/tests/test_flow_conversation.py:2488
Functiontest_declarative_agent_action_saves_artifact
(tmp_path, monkeypatch)
lib/crewai/tests/test_artifacts.py:436
Functiontest_declarative_agent_artifact_file_path_uses_flow_expressions
(tmp_path, monkeypatch)
lib/crewai/tests/test_artifacts.py:562
Functiontest_declarative_agent_reads_artifacts_as_input_files
(store)
lib/crewai/tests/test_artifacts.py:1004
Functiontest_declarative_agent_validation_does_not_execute_python
(project, import_probe, reference)
lib/cli/tests/deploy/test_agent_import_security.py:110
Functiontest_declarative_agent_validation_reports_missing_tools
(project, import_probe)
lib/cli/tests/deploy/test_agent_import_security.py:142
Functiontest_declarative_artifact_input_is_validated_when_loaded
(reference)
lib/crewai/tests/test_artifacts.py:1033
Functiontest_declarative_artifact_input_that_is_missing_fails_the_step
(store)
lib/crewai/tests/test_artifacts.py:1021
Functiontest_declarative_file_path_from_state_cannot_escape
(tmp_path, monkeypatch)
lib/crewai/tests/test_artifacts.py:653
Functiontest_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
Functiontest_declarative_trace_scope_and_class_precedence
()
lib/crewai/tests/test_flow_conversation.py:3787
Methodtest_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
← previousnext →12,901–13,000 of 19,735, ranked by callers