Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
20,757 in github.com/crewAIInc/crewAI
⨍
Functions
20,757
◇
Types & classes
3,596
↳
Endpoints
1,012
Method
test_escape_hatch
CREWAI_TOOLS_ALLOW_UNSAFE_PATHS=true bypasses URL validation.
lib/crewai-tools/tests/utilities/test_safe_path.py:281
Function
test_escape_hatch_allows_writes_outside_working_directory
( tool, temp_env, monkeypatch )
lib/crewai-tools/tests/tools/test_file_writer_tool.py:359
Method
test_european_amounts_do_not_make_a_semicolon_file_comma_separated
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:510
Function
test_eval_reads_a_lock_that_cannot_be_taken_as_not_logged_in
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/authentication/test_login_refresh_callers.py:117
Function
test_eval_reads_an_unreadable_refresh_reply_as_not_logged_in
Not as an unreadable credential: the saved login itself is fine.
lib/cli/tests/authentication/test_login_refresh_callers.py:107
Function
test_eval_reads_the_renewed_login
(token_endpoint: list[httpx.Response])
lib/cli/tests/authentication/test_login_refresh_callers.py:100
Method
test_eval_specific_agents_from_crew
(self, mock_crew)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:128
Method
test_evaluate
(self, crew_planner)
lib/crewai/tests/utilities/evaluators/test_crew_evaluator_handler.py:184
Function
test_evaluate_asks_when_the_login_is_one_the_projects_env_points_to
The run loaded the project's `.env` into this process, and a cloned project's `.env` can move HOME (XDG_DATA_HOME, LOCALAPPDATA) to a folder it
lib/cli/tests/test_crew_run_tui.py:3158
Function
test_evaluate_before_completion_records_nothing
()
lib/cli/tests/test_crew_run_tui.py:957
Function
test_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:420
Function
test_evaluate_consent_screen_evaluates_on_enter_and_says_what_it_does
Evaluate, logged out, on a project that never traced: the screen says what grading the run takes and gives; Enter or y evaluates, n or Esc (Not
lib/cli/tests/test_crew_run_tui.py:3213
Function
test_evaluate_crew_omits_env_var_without_filename
(mock_subprocess_run)
lib/cli/tests/test_crew_test.py:114
Function
test_evaluate_crew_sets_trained_agents_env_var
(mock_subprocess_run)
lib/cli/tests/test_crew_test.py:103
Method
test_evaluate_current_iteration
(self, mock_crew)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:58
Method
test_evaluate_error_handling
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_goal_metrics.py:48
Method
test_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
Function
test_evaluate_logged_in_is_the_consent_and_runs_it_again_without_a_question
Logged in to the AMP the run traces to, pressing Evaluate is the yes: nothing is asked, the app closes, and `crewai eval` runs the crew again
lib/cli/tests/test_crew_run_tui.py:3088
Function
test_evaluate_logged_in_still_asks_a_project_that_turned_tracing_off
CREWAI_TRACING_ENABLED=false is a no a login does not overrule.
lib/cli/tests/test_crew_run_tui.py:3111
Function
test_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:784
Function
test_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:639
Function
test_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
Function
test_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
Function
test_evaluate_on_an_untraced_run_asks_before_tracing_is_turned_on
The project said no to tracing, or nobody ever turned it on and nobody is logged in: only a yes turns it on (in its .env) and runs the crew again;
lib/cli/tests/test_crew_run_tui.py:2998
Function
test_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
Method
test_evaluate_success
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_goal_metrics.py:14
Method
test_evaluate_success
( self, mock_create_llm, mock_agent, mock_task, execution_trace )
lib/crewai/tests/experimental/evaluation/metrics/test_semantic_quality_metrics.py:15
Function
test_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:3290
Function
test_evaluate_training_data
(converter_mock)
lib/crewai/tests/utilities/evaluators/test_task_evaluator.py:11
Function
test_evaluate_with_an_expired_login_asks_as_logged_out
The real login store: a `crewai login` past its expiry is no login, so the screen asks; Not now runs nothing and counts the no.
lib/cli/tests/test_crew_run_tui.py:3132
Method
test_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
Method
test_evaluation_task
(self, crew_planner)
lib/crewai/tests/utilities/evaluators/test_crew_evaluator_handler.py:50
Method
test_evaluation_with_errors
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:195
Method
test_evaluator_agent
(self, crew_planner)
lib/crewai/tests/utilities/evaluators/test_crew_evaluator_handler.py:36
Function
test_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
Method
test_event_is_emitted_before_raise
Subscribers must observe the failure even on an aborting run.
lib/crewai/tests/tools/test_tool_failure.py:376
Method
test_event_is_exported_from_events_package
(self)
lib/crewai/tests/events/test_skill_usage_events.py:190
Function
test_event_listener_tracks_hook_dispatched_events
()
lib/crewai/tests/telemetry/test_telemetry.py:296
Function
test_event_names_the_flow_method_that_saved_it
(store)
lib/crewai/tests/test_artifacts.py:272
Method
test_event_reports_abort_outcome
(self)
lib/crewai/tests/hooks/test_dispatch.py:243
Method
test_event_reports_outcome
(self)
lib/crewai/tests/hooks/test_dispatch.py:222
Function
test_event_spans_preserve_hierarchy_timestamps_and_status
()
lib/crewai/tests/telemetry/test_event_trace_session.py:71
Method
test_events_collection_batch_manager
Legacy listeners still serialize directly emitted lifecycle events.
lib/crewai/tests/tracing/test_tracing.py:319
Method
test_events_emitted_on_feedback_request
Test that events are emitted when feedback is requested.
lib/crewai/tests/test_human_feedback_integration.py:675
Function
test_every_app_amp_cannot_resolve_is_named_once
(mock_get)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:396
Method
test_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
Function
test_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
Function
test_every_folder_handle_is_closed
(project, monkeypatch)
lib/cli/tests/experimental/test_eval_crew.py:3414
Function
test_every_host_a_project_sends_requests_to_is_named
( project, children, monkeypatch )
lib/cli/tests/test_api_keys.py:684
Function
test_every_keyed_compatible_provider_is_covered
()
lib/crewai/tests/llms/test_missing_api_key.py:381
Function
test_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
Method
test_every_model_holder_builds_and_raises_on_first_use
( self, first_use: Any )
lib/crewai/tests/llms/test_missing_api_key.py:491
Function
test_every_model_the_wizard_lists_gets_the_extras_crewai_needs_to_run_it
()
lib/cli/tests/test_constants.py:360
Method
test_every_op
(self, column, op, values, expected)
lib/crewai-files/tests/spreadsheets/test_answers.py:346
Method
test_every_pin_on_one_line_is_bumped
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:539
Function
test_every_provider_create_offers_is_mapped_or_needs_no_extra
A provider added to either picker has to be checked against crewai's routing: openai, ollama and cerebras run on `crewai[tools]` alone.
lib/cli/tests/test_constants.py:193
Function
test_every_provider_extra_is_a_crewai_extra
A name crewai does not publish makes `uv sync` warn and install nothing.
lib/cli/tests/test_constants.py:186
Method
test_every_reason_is_actually_produced
Guard against another declared-but-unused reason.
lib/crewai/tests/tools/test_tool_failure.py:1559
Function
test_every_span_records_the_crewai_version
Regression guard for span kinds added later, in BOTH emitters. Enumerating the source rather than emitting all 32 spans: the point is to fail
lib/crewai/tests/telemetry/test_telemetry.py:606
Function
test_every_text_block_reaches_the_agent
All text blocks are kept, in order, not just the first one.
lib/crewai/tests/mcp/test_tool_result_content.py:81
Function
test_every_upstream_code_maps_to_its_sdk_exception
A masked failure must be catchable exactly like the honest one.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:500
Method
test_every_use_is_collected
Activation is idempotent; usage is not. One event per use.
lib/crewai/tests/tracing/test_skill_used_tracing.py:86
Method
test_every_way_a_spreadsheet_arrives
(self, file)
lib/crewai-files/tests/spreadsheets/test_loading.py:47
Function
test_everything_from_the_wire_prints_literally
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:2119
Function
test_exa_preserves_empty_content_options
(option, value)
lib/crewai-tools/tests/tools/test_exa_empty_options.py:9
Function
test_exa_search_tool_highlights_uses_search_and_contents
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:91
Function
test_exa_search_tool_initialization
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:19
Function
test_exa_search_tool_initialization_with_base_url
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:44
Function
test_exa_search_tool_initialization_with_env
(mock_exa_api_key)
lib/crewai-tools/tests/tools/exa_search_tool_test.py:35
Function
test_exa_search_tool_initialization_with_env_base_url
( mock_exa_api_key, mock_exa_base_url )
lib/crewai-tools/tests/tools/exa_search_tool_test.py:68
Function
test_exa_search_tool_initialization_without_base_url
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:78
Function
test_exact_answers_over_two_hundred_thousand_rows
Counts and totals come from every row, not a sample.
lib/crewai-files/tests/spreadsheets/test_reading.py:594
Function
test_exact_body_limit_and_oversized_span_preserve_fitting_neighbors
( destination, caplog, extra_bytes )
lib/crewai/tests/telemetry/test_grant_export_bounds.py:100
Method
test_exact_match
Test exact match returns the correct outcome.
lib/crewai/tests/test_human_feedback_decorator.py:479
Method
test_exact_option_does_not_build_the_steps_llm
(self)
lib/crewai/tests/test_human_feedback_decorator.py:1399
Method
test_exact_option_from_a_provider_routes_with_no_llm_configured
(self)
lib/crewai/tests/test_human_feedback_decorator.py:1362
Method
test_exact_option_routes_on_async_resume
( self, mock_emit: MagicMock )
lib/crewai/tests/test_async_human_feedback.py:1953
Method
test_exact_option_routes_with_no_llm_configured
( self, mock_emit: MagicMock )
lib/crewai/tests/test_async_human_feedback.py:1939
Method
test_exact_option_routes_with_no_llm_configured
(self)
lib/crewai/tests/test_human_feedback_decorator.py:1352
Function
test_example_dataset_report
(tmp_path)
lib/crewai/tests/test_jev_evaluation_runner.py:146
Method
test_examples
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:852
Function
test_exasearchtool_alias_is_deprecated
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:109
Method
test_exceeded_routes_to_force_final_answer
(self)
lib/crewai/tests/agents/test_agent_executor.py:2452
Function
test_excel_knowledge_source
Test ExcelKnowledgeSource with a simple Excel file.
lib/crewai/tests/knowledge/test_knowledge.py:482
Method
test_exception_failures_do_not_double_print
ToolUsageErrorEvent already prints; the failure panel must not repeat it.
lib/crewai/tests/tools/test_tool_failure.py:515
Method
test_exception_handling_triggered_by
Events emitted after exception should still have correct triggered_by.
lib/crewai/tests/events/test_event_ordering.py:1186
Method
test_exception_is_catchable
Test that exception can be caught and handled.
lib/crewai/tests/test_async_human_feedback.py:209
Method
test_exception_with_callback_info
Test pending exception with callback information.
lib/crewai/tests/test_async_human_feedback.py:171
Method
test_exception_with_custom_message
Test pending exception with custom message.
lib/crewai/tests/test_async_human_feedback.py:192
Function
test_exclude_keys
()
lib/crewai/tests/utilities/test_serialization.py:210
Function
test_execute_agent_span_carries_the_exact_prompt_and_answer
(pipeline)
lib/crewai/tests/telemetry/test_span_task_agent_tool_attributes.py:224
Function
test_execute_command_exits_1_when_uv_cannot_start
( _subprocess_run: mock.Mock, record_run_stopped: mock.Mock, capsys: pytest.CaptureFixture[str], )
lib/crewai/tests/cli/test_run_crew.py:114
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:175
← previous
next →
14,301–14,400 of 20,757, ranked by callers