MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Functiontest_end_to_end_fingerprinting
Test end-to-end fingerprinting across Agent, Crew, and Task.
lib/crewai/tests/security/test_integration.py:106
Functiontest_ended_conversation_cannot_enqueue_or_publish_results
()
lib/crewai/tests/test_flow_replies.py:239
Methodtest_enqueues_task_status_update_event
Cancel enqueues TaskStatusUpdateEvent with canceled state.
lib/crewai/tests/a2a/utils/test_task.py:281
Methodtest_enriched_description_includes_constraints
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:663
Methodtest_enriched_description_propagates_to_nested
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:698
Methodtest_enriched_descriptions_for_mcp
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1082
Functiontest_ensure_first_task_allow_crewai_trigger_context_is_false_does_not_inject
()
lib/crewai/tests/agents/test_agent.py:1092
Functiontest_ensure_lockfile_for_deploy_failure_exits_nonzero
( monkeypatch, tmp_path: Path )
lib/cli/tests/deploy/test_deploy_main.py:71
Functiontest_ensure_lockfile_for_deploy_runs_install_when_lock_missing
( monkeypatch, tmp_path: Path )
lib/cli/tests/deploy/test_deploy_main.py:22
Functiontest_ensure_lockfile_for_deploy_skips_when_lock_exists
(monkeypatch, tmp_path: Path)
lib/cli/tests/deploy/test_deploy_main.py:39
Functiontest_ensure_lockfile_for_deploy_skips_without_pyproject
( monkeypatch, tmp_path: Path )
lib/cli/tests/deploy/test_deploy_main.py:55
Functiontest_enter_skips_the_key_and_the_run_goes_on
( project, children, monkeypatch, capsys )
lib/cli/tests/test_api_keys.py:213
Functiontest_entra_embedding_requires_azure_endpoint
Verify keyless Azure embeddings require an Azure OpenAI endpoint.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:415
Functiontest_entra_embedding_without_oidc_database_uses_default_credential
Verify keyless embeddings work independently of database authentication.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:423
Functiontest_entra_openai_uses_renewable_token_provider
Verify Azure OpenAI receives a renewable bearer-token provider.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:394
Functiontest_entrypoint_resolution_never_imports_agent_sdk
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/crewai-core/tests/test_agent_project_entrypoint.py:72
Methodtest_enum
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:766
Functiontest_enum_serializes_value
()
lib/crewai/tests/utilities/test_crew_json_encoder.py:16
Methodtest_enum_values
Test all enum values are accessible.
lib/crewai-files/tests/processing/test_processor.py:278
Functiontest_env_context_precedence_matches_the_shared_table
Both detection paths must agree on which assistant is present. get_env_context previously restated precedence, so a marker added for telemetr
lib/crewai/tests/telemetry/test_coding_agent_detection.py:703
Functiontest_env_context_still_reads_the_shared_table
get_env_context() walks the same table, so both paths stay in agreement.
lib/crewai/tests/telemetry/test_detection_reexports.py:59
Functiontest_env_false_turns_tracing_off_despite_consent
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/tracing/test_tracing_gate_parity.py:47
Functiontest_env_file_round_trips_non_ascii_values
(tmp_path, ascii_default_encoding)
lib/cli/tests/test_utils.py:271
Functiontest_env_filter_hook_runs_after_merge
An extension-supplied env_filter_hook must be applied to the final env.
lib/crewai/tests/mcp/test_stdio_transport.py:86
Methodtest_env_var_absent_keeps_default
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:223
Methodtest_env_var_access_error_handling
(self, mock_getenv)
lib/crewai/tests/test_context.py:196
Methodtest_env_var_case_insensitive
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:218
Methodtest_env_var_enables_dml
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:213
Methodtest_env_var_false_does_not_enable_dml
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:229
Functiontest_env_var_in_dotenv_does_not_warn
(tmp_path: Path)
lib/cli/tests/deploy/test_validate.py:664
Methodtest_env_var_openrouter_api_key
Test resolving API key from OPENROUTER_API_KEY env var.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:135
Functiontest_env_var_referenced_but_missing_warns
(tmp_path: Path)
lib/cli/tests/deploy/test_validate.py:649
Functiontest_env_vars_are_uppercased_in_env_file
( mock_prompt, mock_select_model, mock_select_provider, mock_get_provider_data, mock_load_
lib/cli/tests/test_create_crew.py:374
Methodtest_env_vars_declared
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:695
Functiontest_env_vars_describe_embedding_credentials
The tool reports the credentials it actually reads, not Browserbase.
lib/crewai-tools/tests/tools/test_mongodb_vector_search_tool.py:73
Methodtest_ephemeral_batch_includes_anon_id
Test that ephemeral batch initialization sends anon_id from get_user_id()
lib/crewai/tests/tracing/test_tracing.py:783
Methodtest_ephemeral_batch_reports_ephemeral_sent
(self)
lib/crewai/tests/tracing/test_tracing.py:1623
Functiontest_error_body_is_fully_included_in_message
The full JSON error body is included in the RuntimeError message.
lib/crewai-tools/tests/tools/brave_search_tool_test.py:576
Functiontest_error_for_status_returns_authentication_error_for_401
()
lib/crewai/tests/mcp/test_mcp_exceptions.py:35
Functiontest_error_for_status_returns_authentication_error_for_403
()
lib/crewai/tests/mcp/test_mcp_exceptions.py:44
Functiontest_error_for_status_returns_http_error_for_non_auth_status
()
lib/crewai/tests/mcp/test_mcp_exceptions.py:53
Functiontest_error_handling
Test error handling in the tool.
lib/crewai-tools/tests/tools/stagehand_tool_test.py:215
Methodtest_error_handling
(self, mock_get)
lib/crewai-tools/tests/rag/test_webpage_loader.py:113
Methodtest_error_handling
(self, mock_get)
lib/crewai-tools/tests/rag/test_xml_loader.py:113
Functiontest_error_is_not_a_runtime_error
Background-save plumbing treats RuntimeError as executor shutdown and silently drops the save — the mismatch must not be classified that way.
lib/crewai/tests/memory/test_dimension_mismatch.py:138
Functiontest_error_message_can_never_be_recorded
PII guard: only identifier-shaped values survive. Error messages routinely contain prompts, model output and credentials. Passing one where a
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:91
Functiontest_error_message_never_mentions_nonetype
The whole point: the raised error must be actionable.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:182
Methodtest_error_result_has_correct_keys
(self)
lib/crewai/tests/utilities/test_agent_utils.py:922
Methodtest_error_status_raises
An error status propagates as an HTTPError.
lib/crewai-tools/tests/url_read_tool_test.py:908
Functiontest_error_type_defaults_to_none_for_backwards_compatibility
Existing callers that construct the event without error_type must keep working.
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:198
Functiontest_error_type_for_status_maps_auth_and_http_errors
()
lib/crewai/tests/mcp/test_mcp_exceptions.py:61
Functiontest_error_type_is_optional
(exporter)
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:107
Functiontest_error_type_only_accepts_an_exception_class
A message can never be recorded, because a message is not a class. Filtering a string with isidentifier() would not be enough: a single-word
lib/crewai/tests/telemetry/test_flow_telemetry.py:384
Functiontest_error_without_json_body_falls_back_to_text
When the error response isn't valid JSON, resp.text is used as the detail.
lib/crewai-tools/tests/tools/brave_search_tool_test.py:600
Functiontest_error_without_message_still_names_the_model
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:256
Methodtest_escape_hatch
CREWAI_TOOLS_ALLOW_UNSAFE_PATHS=true bypasses validation.
lib/crewai-tools/tests/utilities/test_safe_path.py:66
Methodtest_escape_hatch
CREWAI_TOOLS_ALLOW_UNSAFE_PATHS=true bypasses URL validation.
lib/crewai-tools/tests/utilities/test_safe_path.py:281
Functiontest_escape_hatch_allows_writes_outside_working_directory
( tool, temp_env, monkeypatch )
lib/crewai-tools/tests/tools/test_file_writer_tool.py:359
Methodtest_european_amounts_do_not_make_a_semicolon_file_comma_separated
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:510
Methodtest_eval_specific_agents_from_crew
(self, mock_crew)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:128
Methodtest_evaluate
(self, crew_planner)
lib/crewai/tests/utilities/evaluators/test_crew_evaluator_handler.py:184
Functiontest_evaluate_before_completion_records_nothing
()
lib/cli/tests/test_crew_run_tui.py:764
Functiontest_evaluate_button_evaluates_here_and_does_not_leave
The evaluation takes minutes, has a link worth showing and a verdict worth reading. Sending somebody to a bare terminal to wait for them is the
lib/cli/tests/test_crew_run_tui.py:227
Functiontest_evaluate_consent_screen_shares_on_enter_and_says_why
Evaluate on a project that never traced: the screen says the evaluation needs the trace and that Enter shares it; Enter or y shares, n or Esc runs
lib/cli/tests/test_crew_run_tui.py:2859
Functiontest_evaluate_crew_omits_env_var_without_filename
(mock_subprocess_run)
lib/cli/tests/test_crew_test.py:114
Functiontest_evaluate_crew_sets_trained_agents_env_var
(mock_subprocess_run)
lib/cli/tests/test_crew_test.py:103
Methodtest_evaluate_current_iteration
(self, mock_crew)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:58
Methodtest_evaluate_error_handling
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_goal_metrics.py:48
Methodtest_evaluate_error_handling
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_semantic_quality_metrics.py:75
Functiontest_evaluate_on_a_run_that_sets_tracing_false_says_why_and_runs_nothing
Running it again could not make a trace: nothing to pay for.
lib/cli/tests/test_crew_run_tui.py:591
Functiontest_evaluate_on_a_run_that_was_not_traced_runs_it_again_traced
A run with no session of its own, or whose trace never reached AMP, has nothing to grade — and a record naming a DIFFERENT run is not evidence tha
lib/cli/tests/test_crew_run_tui.py:446
Functiontest_evaluate_on_an_untraced_conversation_runs_it_again_for_its_evaluation
The app closed because the session was not traced: the conversational flow runs again through `crewai eval`'s own path rather than the request
lib/cli/tests/test_kickoff_flow.py:195
Functiontest_evaluate_on_an_untraced_flow_run_runs_it_again_for_its_evaluation
The app closed because its run was not traced: what follows is `crewai eval`'s own path, told to run the flow again whatever the record.
lib/cli/tests/test_run_declarative_flow.py:536
Functiontest_evaluate_on_an_untraced_run_asks_before_tracing_is_turned_on
The project said no to tracing, or nobody ever turned it on: only a yes turns it on (in its .env) and runs the crew again; a no leaves everything
lib/cli/tests/test_crew_run_tui.py:2800
Functiontest_evaluate_on_an_untraced_run_runs_the_crew_again_for_its_evaluation
The app closed because its run was not traced: what follows is `crewai eval`'s own path, told to run the crew again whatever the record.
lib/cli/tests/test_run_crew.py:804
Methodtest_evaluate_success
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_goal_metrics.py:14
Methodtest_evaluate_success
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_semantic_quality_metrics.py:15
Functiontest_evaluate_toward_an_untrusted_amp_asks_nothing_and_writes_nothing
The project's `.env` names an AMP this machine does not trust with its login, logged in or not yet: `crewai eval` would refuse the re-run, so
lib/cli/tests/test_crew_run_tui.py:2897
Functiontest_evaluate_training_data
(converter_mock)
lib/crewai/tests/utilities/evaluators/test_task_evaluator.py:11
Methodtest_evaluate_with_empty_output
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_semantic_quality_metrics.py:49
Methodtest_evaluation_task
(self, crew_planner)
lib/crewai/tests/utilities/evaluators/test_crew_evaluator_handler.py:50
Methodtest_evaluation_with_errors
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:195
Methodtest_evaluator_agent
(self, crew_planner)
lib/crewai/tests/utilities/evaluators/test_crew_evaluator_handler.py:36
Functiontest_event_bus_error_handling
Test that handler exceptions are caught and don't break the event bus.
lib/crewai/tests/utilities/events/test_crewai_event_bus.py:71
Methodtest_event_is_emitted_before_raise
Subscribers must observe the failure even on an aborting run.
lib/crewai/tests/tools/test_tool_failure.py:376
Methodtest_event_is_exported_from_events_package
(self)
lib/crewai/tests/events/test_skill_usage_events.py:190
Functiontest_event_listener_tracks_hook_dispatched_events
()
lib/crewai/tests/telemetry/test_telemetry.py:296
Methodtest_event_reports_abort_outcome
(self)
lib/crewai/tests/hooks/test_dispatch.py:243
Methodtest_event_reports_outcome
(self)
lib/crewai/tests/hooks/test_dispatch.py:222
Functiontest_event_spans_preserve_hierarchy_timestamps_and_status
()
lib/crewai/tests/telemetry/test_event_trace_session.py:71
Methodtest_events_collection_batch_manager
Legacy listeners still serialize directly emitted lifecycle events.
lib/crewai/tests/tracing/test_tracing.py:314
Methodtest_events_emitted_on_feedback_request
Test that events are emitted when feedback is requested.
lib/crewai/tests/test_human_feedback_integration.py:675
Functiontest_every_app_amp_cannot_resolve_is_named_once
(mock_get)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:408
Methodtest_every_broad_handler_around_tool_execution_lets_it_through
Guard against a new `except Exception` quietly downgrading an abort. Five separate handlers have swallowed this exception during review of
lib/crewai/tests/tools/test_tool_failure.py:741
Functiontest_every_connection_is_closed_after_use
Each operation closes the connection it opened instead of leaking it. ``with sqlite3.connect(...) as conn`` only commits or rolls back; it never
lib/crewai/tests/storage/test_kickoff_task_outputs_storage.py:31
Functiontest_every_folder_handle_is_closed
(project, monkeypatch)
lib/cli/tests/experimental/test_eval_crew.py:3200
Functiontest_every_host_a_project_sends_requests_to_is_named
( project, children, monkeypatch )
lib/cli/tests/test_api_keys.py:684
Functiontest_every_keyed_compatible_provider_is_covered
()
lib/crewai/tests/llms/test_missing_api_key.py:381
Functiontest_every_marker_comes_from_a_verified_set
Guard against reintroducing guessed variable names. A wrong name never matches, so the assistant is silently counted as "unknown" while the t
lib/crewai/tests/telemetry/test_coding_agent_detection.py:215
Methodtest_every_model_holder_builds_and_raises_on_first_use
( self, first_use: Any )
lib/crewai/tests/llms/test_missing_api_key.py:491
← previousnext →13,501–13,600 of 19,735, ranked by callers