Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,264 in github.com/crewAIInc/crewAI
⨍
Functions
19,264
◇
Types & classes
3,413
↳
Endpoints
990
Function
test_run_inputs_without_definition_calls_run_crew
(run_crew, runner)
lib/cli/tests/test_cli.py:277
Method
test_run_invalid_query_syntax
Test executing a query with invalid syntax.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:273
Function
test_run_json_crew_accepts_inputs_argument
(monkeypatch, tmp_path: Path, capsys)
lib/cli/tests/test_run_crew.py:1083
Function
test_run_json_crew_completed_status_returns_result
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:797
Function
test_run_json_crew_dmn_mode_bypasses_tui
(monkeypatch, tmp_path: Path, capsys)
lib/cli/tests/test_run_crew.py:834
Function
test_run_json_crew_dmn_mode_exits_on_missing_inputs
( monkeypatch, tmp_path: Path, capsys )
lib/cli/tests/test_run_crew.py:964
Function
test_run_json_crew_exports_trained_agents_env
JSON crews run in-process, so the pickle path must land in the env var.
lib/cli/tests/test_run_crew.py:703
Function
test_run_json_crew_failed_status_exits_nonzero
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:787
Function
test_run_json_crew_in_a_terminal_opens_the_tui
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:926
Function
test_run_json_crew_in_project_env_forwards_inputs
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:1110
Function
test_run_json_crew_in_project_env_rejects_invalid_inputs_json
( monkeypatch, tmp_path: Path, capsys )
lib/cli/tests/test_run_crew.py:1134
Function
test_run_json_crew_leaves_env_untouched_without_flag
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:718
Function
test_run_json_crew_without_a_terminal_runs_headless_and_exits
A coding agent's shell has no terminal: the TUI would stay open after the crew finished and `crewai run` would never exit.
lib/cli/tests/test_run_crew.py:904
Method
test_run_json_file
Test reading a JSON file returns decoded content.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:53
Function
test_run_merges_default_filter_and_rejects_non_object_filters
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:1413
Method
test_run_multiple_files
Test tool can access multiple files.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:103
Function
test_run_names_another_execution_and_an_anonymous_caller_sends_no_token
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:337
Function
test_run_no_download
(mock_urlopen)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:78
Method
test_run_no_files_available
Test _run returns message when no files are set.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:30
Function
test_run_normalizes_decimal_metadata_values
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:382
Function
test_run_passes_filename_to_project_runner
(run_crew, runner)
lib/cli/tests/test_cli.py:297
Function
test_run_passes_filename_to_run_crew
(run_crew_mock: mock.Mock, runner: CliRunner)
lib/crewai/tests/cli/test_run_crew.py:33
Method
test_run_pdf_file_returns_extracted_text
Test reading a PDF file returns extracted text instead of base64.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:84
Method
test_run_preserves_unexpected_exception_fallback
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:75
Method
test_run_raises_on_blocked_query
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:243
Function
test_run_rejects_filename_with_definition
(run_crew, runner)
lib/cli/tests/test_cli.py:288
Function
test_run_returns_empty_string_on_error
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:748
Method
test_run_returns_results_for_select
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:248
Method
test_run_select_query
Test executing a SELECT query.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:231
Method
test_run_sends_the_argument_under_its_original_name
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:185
Method
test_run_serializes_success_output
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:43
Method
test_run_show_query
Test executing a SHOW query.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:255
Function
test_run_still_backfills
`crewai run` was already correct and must stay that way. The backfill returns normally and execution is stopped at the next call in run_crew
lib/crewai/tests/cli/test_project_id_backfill.py:121
Method
test_run_strips_extra_kwargs_from_llm
Extra kwargs not in the schema should be silently stripped, preventing unexpected-keyword crashes in _run.
lib/crewai/tests/tools/test_base_tool.py:310
Method
test_run_success
( self, mock_create_evaluator, mock_crew, mock_evaluator_results )
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:53
Function
test_run_success_global_index
Test successful _run execution with a global (non-scoped) index.
lib/crewai-tools/tests/tools/couchbase_tool_test.py:290
Function
test_run_success_html
(mock_post)
lib/crewai-tools/tests/tools/brightdata_webunlocker_tool_test.py:14
Function
test_run_success_json
(mock_post)
lib/crewai-tools/tests/tools/brightdata_webunlocker_tool_test.py:30
Function
test_run_success_scoped_index
Test successful _run execution with a scoped index.
lib/crewai-tools/tests/tools/couchbase_tool_test.py:231
Method
test_run_success_when_expected_metric_is_not_available
( self, mock_create_evaluator, mock_crew, mock_evaluator_results )
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:177
Method
test_run_success_with_single_metric_evaluator_and_expected_specific_metric
( self, mock_create_evaluator, mock_crew, mock_evaluator_results )
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:142
Method
test_run_success_with_unknown_metric
( self, mock_create_evaluator, mock_crew, mock_evaluator_results )
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:112
Method
test_run_successful_search
(self, mock_post)
lib/crewai-tools/tests/tools/brightdata_serp_tool_test.py:16
Method
test_run_text_file
Test reading a text file returns decoded content.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:44
Function
test_run_uses_project_runner_by_default
(run_crew, runner)
lib/cli/tests/test_cli.py:249
Method
test_run_with_all_kwargs_passes_validation
All keyword arguments including optional ones should pass.
lib/crewai/tests/tools/test_base_tool.py:271
Function
test_run_with_definition_uses_project_runner
(run_crew, runner)
lib/cli/tests/test_cli.py:262
Function
test_run_with_download
(mock_urlretrieve, mock_urlopen)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:65
Method
test_run_with_kwargs
Test _run ignores extra kwargs.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:115
Function
test_run_with_max_results
(mock_fetch, tool)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:116
Method
test_run_with_missing_required_kwarg_raises
Missing required kwargs should raise ValueError from schema validation.
lib/crewai/tests/tools/test_base_tool.py:284
Method
test_run_with_no_args_raises_validation_error
Calling run() with no arguments should raise a clear ValueError, not a cryptic TypeError about missing positional arguments (GH-4611).
lib/crewai/tests/tools/test_base_tool.py:277
Method
test_run_with_positional_args_skips_validation
Positional-arg calls should bypass schema validation (backwards compat).
lib/crewai/tests/tools/test_base_tool.py:297
Function
test_run_with_rate_limit_retry_retries_with_backoff
()
lib/crewai/tests/llms/test_retry.py:90
Method
test_run_with_request_exception
(self, mock_post)
lib/crewai-tools/tests/tools/brightdata_serp_tool_test.py:41
Method
test_run_with_ssl_verification_default
Test that _run uses SSL verification by default when CREWAI_FACTORY is not set
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:91
Method
test_run_with_ssl_verification_factory_false
Test that _run uses SSL verification when CREWAI_FACTORY is 'false
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:107
Method
test_run_with_ssl_verification_factory_false_uppercase
Test that _run uses SSL verification when CREWAI_FACTORY is 'FALSE' (case-insensitive)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:123
Method
test_run_with_valid_kwargs_passes_validation
Valid keyword arguments should pass schema validation and execute.
lib/crewai/tests/tools/test_base_tool.py:265
Method
test_run_with_wrong_field_name_raises
Kwargs not matching any schema field should trigger validation error for missing required fields.
lib/crewai/tests/tools/test_base_tool.py:290
Function
test_run_without_file_path_reports_error_when_no_default
file_path is optional in the schema, so this must not raise.
lib/crewai-tools/tests/file_read_tool_test.py:258
Function
test_run_without_filename_passes_none
(run_crew_mock: mock.Mock, runner: CliRunner)
lib/crewai/tests/cli/test_run_crew.py:45
Method
test_run_without_ssl_verification_factory_true
Test that _run disables SSL verification when CREWAI_FACTORY is 'true
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:139
Method
test_run_without_ssl_verification_factory_true_uppercase
Test that _run disables SSL verification when CREWAI_FACTORY is 'TRUE' (case-insensitive)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:155
Function
test_runner_allows_turns_while_held_and_retains_outputs_after_failure
()
lib/crewai/tests/test_flow_jobs.py:184
Function
test_runner_requires_firecrawl_key
(runner, monkeypatch)
lib/crewai/tests/telemetry/test_wharf_runner.py:63
Function
test_runtime_env_does_not_import_crewai
crewai-core is the leaf package; importing crewai here would invert it. Asserted on the module's imports rather than on ``sys.modules``, which
lib/crewai-core/tests/test_runtime_env.py:72
Method
test_runtime_fields_are_rejected
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:898
Function
test_runtime_markers_are_detected_by_presence
An empty value still means the platform set the marker. Some platforms export a bare `CI=`; truthiness checks would drop those runs to the TT
lib/crewai/tests/telemetry/test_coding_agent_detection.py:651
Function
test_runtime_package_reads_no_decorator_attrs
()
lib/crewai/tests/test_flow_from_definition.py:4397
Function
test_runtime_precedence_prefers_the_most_specific
CI and hosted IDEs usually run in containers; the specific one wins.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:306
Method
test_runtime_state_roundtrip_with_record
(self)
lib/crewai/tests/test_event_record.py:358
Method
test_runtime_state_serializes_event_record
(self)
lib/crewai/tests/test_event_record.py:332
Method
test_runtime_state_without_record_still_loads
Backwards compat: a bare entity list should still validate.
lib/crewai/tests/test_event_record.py:391
Function
test_s3_reader_closes_response_body
Release the streaming response after a successful read.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:32
Function
test_s3_reader_closes_response_body_after_decode_error
Release the streaming response when UTF-8 decoding fails.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:46
Function
test_s3_reader_closes_response_body_after_read_error
Release the streaming response when reading the body fails.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:62
Function
test_s3_reader_preserves_read_error_when_close_fails
Keep the primary read error when best-effort cleanup also fails.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:93
Function
test_s3_reader_preserves_result_when_close_fails
Keep a successful read result when best-effort cleanup fails.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:78
Function
test_safe_extractall_blocks_hardlink_escaping_cache_destination
A hardlink whose target escapes dest is rejected.
lib/crewai/tests/skills/test_cache.py:230
Function
test_safe_extractall_blocks_member_written_through_cache_symlink_chain
Self-referential symlinks followed by a regular member must not escape.
lib/crewai/tests/skills/test_cache.py:287
Function
test_safe_extractall_blocks_special_cache_tar_member
Special tar members such as FIFOs are rejected.
lib/crewai/tests/skills/test_cache.py:248
Function
test_safe_extractall_blocks_symlink_escaping_cache_destination
A symlink whose target escapes dest is rejected before extraction.
lib/crewai/tests/skills/test_cache.py:204
Function
test_safe_extractall_refuses_cache_links_with_upgrade_hint
Even a link that stays inside dest is refused; filter="data" handles it.
lib/crewai/tests/skills/test_cache.py:263
Function
test_safe_get_allows_configured_private_hostname
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/utilities/test_safe_requests.py:67
Function
test_safe_get_blocks_direct_internal_url
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:62
Function
test_safe_get_blocks_redirect_to_internal_url
( monkeypatch: pytest.MonkeyPatch, public_dns: None )
lib/crewai-tools/tests/utilities/test_safe_requests.py:144
Function
test_safe_get_closes_earlier_hops_after_too_many_redirects
Hops accumulated before the failure must not be left open. Under stream=True each hop holds its connection until its body is read or closed,
lib/crewai-tools/tests/utilities/test_safe_requests.py:208
Function
test_safe_get_closes_earlier_hops_when_a_redirect_is_rejected
A hop rejected mid-chain still releases the connections already open.
lib/crewai-tools/tests/utilities/test_safe_requests.py:231
Function
test_safe_get_fails_closed_after_too_many_redirects
( monkeypatch: pytest.MonkeyPatch, public_dns: None )
lib/crewai-tools/tests/utilities/test_safe_requests.py:187
Function
test_safe_get_follows_redirect_from_private_host_to_public_host
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/utilities/test_safe_requests.py:87
Function
test_safe_get_follows_safe_relative_redirect
( monkeypatch: pytest.MonkeyPatch, public_dns: None )
lib/crewai-tools/tests/utilities/test_safe_requests.py:162
Function
test_safe_get_leaves_hops_open_on_success
On success the hops belong to the caller, via response.history.
lib/crewai-tools/tests/utilities/test_safe_requests.py:254
Function
test_safe_get_preserves_credentials_on_same_origin_redirect
( monkeypatch: pytest.MonkeyPatch, public_dns: None )
lib/crewai-tools/tests/utilities/test_safe_requests.py:314
Function
test_safe_get_rechecks_private_host_allowlist_on_redirect
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/utilities/test_safe_requests.py:113
Function
test_safe_get_rejects_proxies
( monkeypatch: pytest.MonkeyPatch, public_dns: None )
lib/crewai-tools/tests/utilities/test_safe_requests.py:338
Function
test_safe_get_strips_credentials_on_cross_origin_redirect
( monkeypatch: pytest.MonkeyPatch, public_dns: None )
lib/crewai-tools/tests/utilities/test_safe_requests.py:273
Function
test_safe_repair_json
()
lib/crewai/tests/agents/test_crew_agent_parser.py:232
Function
test_safe_repair_json_extra_commas
()
lib/crewai/tests/agents/test_crew_agent_parser.py:261
Function
test_safe_repair_json_missing_colon
()
lib/crewai/tests/agents/test_crew_agent_parser.py:296
← previous
next →
17,401–17,500 of 19,264, ranked by callers