MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,663 in github.com/crewAIInc/crewAI

Functiontest_run_declarative_flow_loads_project_env
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_run_declarative_flow.py:372
Functiontest_run_declarative_flow_opens_the_conversational_tui
A declarative chat flow gets the same TUI a Python one does.
lib/cli/tests/test_run_declarative_flow.py:688
Functiontest_run_declarative_flow_reads_definition_file
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:39
Functiontest_run_declarative_flow_rejects_non_object_inputs
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:52
Functiontest_run_declarative_flow_reports_empty_file
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:78
Functiontest_run_declarative_flow_reports_missing_file
( capsys: pytest.CaptureFixture[str], )
lib/cli/tests/test_run_declarative_flow.py:66
Functiontest_run_declarative_flow_still_runs_a_disabled_conversational_flow
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:842
Functiontest_run_declarative_flow_tui_chains_deploy
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:520
Functiontest_run_declarative_flow_tui_enables_flow_events
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:601
Functiontest_run_declarative_flow_tui_failed_exits_nonzero
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:493
Functiontest_run_declarative_flow_tui_leaves_the_report_link_behind
A declarative flow evaluates inside the app like a crew does. What the terminal is for is afterwards: the link, once the screen that held it is
lib/cli/tests/test_run_declarative_flow.py:573
Functiontest_run_declarative_flow_tui_no_deploy_when_not_requested
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:557
Functiontest_run_declarative_flow_tui_user_quit_exits_130
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:506
Methodtest_run_denied_query
Test that denied queries return appropriate error message.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:281
Functiontest_run_does_not_call_asyncio_run_for_sync_tools
Test that asyncio.run is NOT called when using sync tools.
lib/crewai/tests/tools/test_base_tool.py:199
Methodtest_run_does_not_increment_usage_on_validation_error
Usage count should NOT increment when validation fails.
lib/crewai/tests/tools/test_base_tool.py:324
Methodtest_run_empty_result
Test executing a query that returns no results.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:265
Methodtest_run_file_not_found
Test _run returns message when file not found.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:35
Methodtest_run_filtered_query
Test executing a filtered SELECT query.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:242
Functiontest_run_handles_exception
(mock_urlopen)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:97
Functiontest_run_http_error
(mock_post)
lib/crewai-tools/tests/tools/brightdata_webunlocker_tool_test.py:48
Methodtest_run_increments_usage_after_validation
Usage count should still increment after validated execution.
lib/crewai/tests/tools/test_base_tool.py:317
Functiontest_run_inputs_without_definition_calls_run_crew
(run_crew, runner)
lib/cli/tests/test_cli.py:277
Methodtest_run_invalid_query_syntax
Test executing a query with invalid syntax.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:273
Functiontest_run_json_crew_accepts_inputs_argument
(monkeypatch, tmp_path: Path, capsys)
lib/cli/tests/test_run_crew.py:1083
Functiontest_run_json_crew_completed_status_returns_result
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:797
Functiontest_run_json_crew_dmn_mode_bypasses_tui
(monkeypatch, tmp_path: Path, capsys)
lib/cli/tests/test_run_crew.py:834
Functiontest_run_json_crew_dmn_mode_exits_on_missing_inputs
( monkeypatch, tmp_path: Path, capsys )
lib/cli/tests/test_run_crew.py:964
Functiontest_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
Functiontest_run_json_crew_failed_status_exits_nonzero
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:787
Functiontest_run_json_crew_in_a_terminal_opens_the_tui
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:926
Functiontest_run_json_crew_in_project_env_forwards_inputs
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:1110
Functiontest_run_json_crew_in_project_env_rejects_invalid_inputs_json
( monkeypatch, tmp_path: Path, capsys )
lib/cli/tests/test_run_crew.py:1134
Functiontest_run_json_crew_leaves_env_untouched_without_flag
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:718
Functiontest_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
Methodtest_run_json_file
Test reading a JSON file returns decoded content.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:53
Functiontest_run_merges_default_filter_and_rejects_non_object_filters
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:1413
Methodtest_run_multiple_files
Test tool can access multiple files.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:103
Functiontest_run_names_another_execution_and_an_anonymous_caller_sends_no_token
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:337
Functiontest_run_no_download
(mock_urlopen)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:78
Methodtest_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
Functiontest_run_normalizes_decimal_metadata_values
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:382
Functiontest_run_passes_filename_to_project_runner
(run_crew, runner)
lib/cli/tests/test_cli.py:297
Functiontest_run_passes_filename_to_run_crew
(run_crew_mock: mock.Mock, runner: CliRunner)
lib/crewai/tests/cli/test_run_crew.py:33
Methodtest_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
Methodtest_run_preserves_unexpected_exception_fallback
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:75
Methodtest_run_raises_on_blocked_query
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:243
Functiontest_run_rejects_filename_with_definition
(run_crew, runner)
lib/cli/tests/test_cli.py:288
Functiontest_run_returns_empty_string_on_error
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:748
Methodtest_run_returns_results_for_select
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:248
Methodtest_run_select_query
Test executing a SELECT query.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:231
Methodtest_run_sends_the_argument_under_its_original_name
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:185
Methodtest_run_serializes_success_output
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:43
Methodtest_run_show_query
Test executing a SHOW query.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:255
Functiontest_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
Methodtest_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
Methodtest_run_success
( self, mock_create_evaluator, mock_crew, mock_evaluator_results )
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:53
Functiontest_run_success_global_index
Test successful _run execution with a global (non-scoped) index.
lib/crewai-tools/tests/tools/couchbase_tool_test.py:290
Functiontest_run_success_html
(mock_post)
lib/crewai-tools/tests/tools/brightdata_webunlocker_tool_test.py:14
Functiontest_run_success_json
(mock_post)
lib/crewai-tools/tests/tools/brightdata_webunlocker_tool_test.py:30
Functiontest_run_success_scoped_index
Test successful _run execution with a scoped index.
lib/crewai-tools/tests/tools/couchbase_tool_test.py:231
Methodtest_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
Methodtest_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
Methodtest_run_success_with_unknown_metric
( self, mock_create_evaluator, mock_crew, mock_evaluator_results )
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:112
Methodtest_run_successful_search
(self, mock_post)
lib/crewai-tools/tests/tools/brightdata_serp_tool_test.py:16
Methodtest_run_text_file
Test reading a text file returns decoded content.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:44
Functiontest_run_uses_project_runner_by_default
(run_crew, runner)
lib/cli/tests/test_cli.py:249
Methodtest_run_with_all_kwargs_passes_validation
All keyword arguments including optional ones should pass.
lib/crewai/tests/tools/test_base_tool.py:271
Functiontest_run_with_definition_uses_project_runner
(run_crew, runner)
lib/cli/tests/test_cli.py:262
Functiontest_run_with_download
(mock_urlretrieve, mock_urlopen)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:65
Methodtest_run_with_kwargs
Test _run ignores extra kwargs.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:115
Functiontest_run_with_max_results
(mock_fetch, tool)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:116
Methodtest_run_with_missing_required_kwarg_raises
Missing required kwargs should raise ValueError from schema validation.
lib/crewai/tests/tools/test_base_tool.py:284
Methodtest_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
Methodtest_run_with_positional_args_skips_validation
Positional-arg calls should bypass schema validation (backwards compat).
lib/crewai/tests/tools/test_base_tool.py:297
Functiontest_run_with_rate_limit_retry_retries_with_backoff
()
lib/crewai/tests/llms/test_retry.py:90
Methodtest_run_with_request_exception
(self, mock_post)
lib/crewai-tools/tests/tools/brightdata_serp_tool_test.py:41
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_run_with_valid_kwargs_passes_validation
Valid keyword arguments should pass schema validation and execute.
lib/crewai/tests/tools/test_base_tool.py:265
Methodtest_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
Functiontest_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
Functiontest_run_without_filename_passes_none
(run_crew_mock: mock.Mock, runner: CliRunner)
lib/crewai/tests/cli/test_run_crew.py:45
Methodtest_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
Methodtest_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
Functiontest_runner_allows_turns_while_held_and_retains_outputs_after_failure
()
lib/crewai/tests/test_flow_jobs.py:184
Functiontest_runner_requires_firecrawl_key
(runner, monkeypatch)
lib/crewai/tests/telemetry/test_wharf_runner.py:63
Functiontest_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
Methodtest_runtime_fields_are_rejected
(self, tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:898
Functiontest_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
Functiontest_runtime_package_reads_no_decorator_attrs
()
lib/crewai/tests/test_flow_from_definition.py:4511
Functiontest_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
Methodtest_runtime_state_roundtrip_with_record
(self)
lib/crewai/tests/test_event_record.py:358
Methodtest_runtime_state_serializes_event_record
(self)
lib/crewai/tests/test_event_record.py:332
Methodtest_runtime_state_without_record_still_loads
Backwards compat: a bare entity list should still validate.
lib/crewai/tests/test_event_record.py:391
Functiontest_s3_reader_closes_response_body
Release the streaming response after a successful read.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:32
Functiontest_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
Functiontest_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
Functiontest_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
← previousnext →17,701–17,800 of 19,663, ranked by callers