MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

Methodtest_a_missing_key_inside_an_agents_validation_error
( self, tmp_path: Path )
lib/crewai/tests/llms/test_missing_api_key.py:537
Methodtest_a_missing_key_raised_as_itself
(self, tmp_path: Path)
lib/crewai/tests/llms/test_missing_api_key.py:531
Functiontest_a_missing_key_without_a_terminal_counts_one_warning
( project, usage, commands, monkeypatch )
lib/cli/tests/test_run_usage.py:1191
Functiontest_a_missing_or_broken_record_reads_as_none
(project)
lib/crewai/tests/telemetry/test_last_run.py:82
Functiontest_a_model_key_matches_with_and_without_the_provider_prefix
Native providers strip `openai/`; a key written either way matches both.
lib/crewai/tests/test_llm_overlay.py:613
Functiontest_a_model_key_that_names_no_model_is_refused
()
lib/crewai/tests/test_llm_overlay.py:736
Functiontest_a_model_mapped_onto_litellm_is_not_initialized_again
`LLM.__new__` returning an `LLM` makes Python call `__init__` with the caller's arguments; the mapped instance must keep the mapped model.
lib/crewai/tests/test_llm_overlay.py:679
Functiontest_a_model_string_or_none_the_caller_assigns_is_resolved_like_construction
`Agent.llm` takes a string or `None` as well as an instance, and nothing validates an assignment. Both are resolved the way construction resolves
lib/crewai/tests/test_llm_overlay.py:464
Methodtest_a_model_that_refuses_none_is_not_recorded
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:401
Methodtest_a_model_that_rejected_the_parameter_is_not_sent_it_again
The rejected call is paid once per process, not on every request.
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:355
Functiontest_a_model_without_a_single_known_key_asks_nothing
( project, children, no_prompt, model )
lib/cli/tests/test_api_keys.py:983
Functiontest_a_model_without_its_provider_exits_one_before_anything_is_sent
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:2049
Functiontest_a_move_that_fails_halfway_puts_back_what_it_moved
Descriptor 1 moved, 2 refused: 1 comes back before the block runs, so the verdict printed after it still reaches the screen.
lib/cli/tests/experimental/test_eval_crew.py:4441
Functiontest_a_name_that_only_starts_like_a_windows_device_is_written
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:2998
Functiontest_a_name_that_starts_with_a_quote_is_found
()
lib/crewai/tests/agents/test_agent_spreadsheets.py:1251
Functiontest_a_named_run_never_runs_the_crew
`--run <id>` grades that run: whatever the project's record says, the crew does not run (the autouse guard fails the test if it does).
lib/cli/tests/experimental/test_eval_crew.py:827
Methodtest_a_namespace_prefix_on_cells_is_still_measured
( self, calamine_must_not_open )
lib/crewai-files/tests/spreadsheets/test_reading.py:275
Functiontest_a_native_provider_prefix_is_still_its_own
()
lib/crewai/tests/test_llm_overlay.py:824
Methodtest_a_nested_model_is_omitted_from_the_projection
`module.Outer.Route` reloads `module.Outer` as a module that is absent.
lib/crewai/tests/test_flow_conversation.py:2709
Functiontest_a_new_env_file_holding_a_pasted_key_is_readable_by_its_owner_only
( project, children, monkeypatch )
lib/cli/tests/test_api_keys.py:275
Functiontest_a_non_builtin_exception_class_also_round_trips
Most failures here are not builtins -- provider and pydantic errors dominate.
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:546
Methodtest_a_non_json_error_page_keeps_its_api_class
A gateway's HTML 502 is an api_5xx, not an invalid response.
lib/cli/tests/deploy/test_deploy_main.py:1299
Methodtest_a_non_json_success_body_reports_invalid_json
A proxy's 200 HTML page: _validate_response rejects it, so it is a failure with a 2xx attached, and it is not the same failure as a JSON
lib/cli/tests/deploy/test_deploy_main.py:1210
Methodtest_a_non_model_response_format_is_omitted_from_the_projection
( self, caplog: pytest.LogCaptureFixture )
lib/crewai/tests/test_flow_conversation.py:2693
Methodtest_a_non_string_text_block_does_not_raise
Blocks are `dict[str, Any]` from a model, so `text` may be anything.
lib/crewai/tests/utilities/test_agent_utils.py:740
Methodtest_a_number_column_with_no_text_is_not_an_integer_column
An empty text slice once turned the float column to object dtype, and 120.5 read as an integer column.
lib/crewai-files/tests/spreadsheets/test_reading.py:424
Methodtest_a_page_of_rows_with_the_filters_in_the_headline
(self)
lib/crewai-files/tests/spreadsheets/test_answers.py:240
Methodtest_a_partly_filled_column_never_rounds_up_to_full
(self)
lib/crewai-files/tests/spreadsheets/test_answers.py:87
Functiontest_a_pasted_key_creates_the_env_file
(project, children, monkeypatch)
lib/cli/tests/test_api_keys.py:202
Functiontest_a_pasted_key_is_marked_for_the_run_that_follows
Only a key pasted here outlasts a `.env` line that holds no key.
lib/cli/tests/test_api_keys.py:545
Functiontest_a_pasted_key_is_saved_and_handed_to_the_run
( project, children, monkeypatch, capsys, setup )
lib/cli/tests/test_api_keys.py:159
Functiontest_a_pasted_key_leaves_the_env_file_readable_by_its_owner_only
A `.env` `crewai create` wrote takes the umask's group and world bits.
lib/cli/tests/test_api_keys.py:185
Functiontest_a_person_gets_one_red_line_when_a_setup_stops
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:1854
Functiontest_a_piped_env_file_is_left_for_the_run_to_read
A secrets manager can serve `.env` through a named pipe. Opening it with no writer blocks, and what it serves goes to one reader, which is the run
lib/cli/tests/test_api_keys.py:857
Functiontest_a_plain_attribute_over_the_bound_marks_itself_too
``crewai.task.output`` used to have no bound at all: one huge output made the whole span too large for Wharf, which then never stored it.
lib/crewai/tests/telemetry/test_span_attribute_bound.py:186
Functiontest_a_plain_string_is_unchanged
()
lib/crewai/tests/agents/test_agent_kickoff_message_history.py:174
Functiontest_a_plain_string_request_is_unchanged
()
lib/crewai/tests/agents/test_agent_kickoff_content_parts.py:108
Functiontest_a_platform_ref_amp_cannot_resolve_names_the_app
()
lib/crewai/tests/test_flow_from_definition.py:3298
Methodtest_a_position_written_any_way_calamine_reads_is_measured
( self, cell, calamine_must_not_open )
lib/crewai-files/tests/spreadsheets/test_reading.py:265
Methodtest_a_presigned_spreadsheet_is_recognised
(self, url)
lib/crewai-files/tests/spreadsheets/test_loading.py:344
Functiontest_a_progress_line_is_said_once_even_when_parallel_setups_alternate
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:1803
Functiontest_a_project_crewai_core_that_takes_no_attributes_still_counts_the_stop
The JSON crew's runner imports the project's crewai-core, whose `feature_usage_span` took no attributes before 1.15.23.
lib/cli/tests/test_run_usage.py:904
Functiontest_a_project_env_already_loaded_into_the_environment_is_still_named
`crewai eval` loads the project's `.env` before it runs the crew in the same process: the setting is in the environment by the time of the check.
lib/cli/tests/test_api_keys.py:337
Functiontest_a_project_env_cannot_say_an_evaluation_is_waiting
The child loads the project's `.env` over its environment. A value the command did not mint — with no token file behind it — is no handshake, so
lib/cli/tests/test_crew_run_tui.py:693
Functiontest_a_project_env_opt_out_covers_a_failed_script
( project, usage, monkeypatch, flag )
lib/cli/tests/test_run_usage.py:1164
Functiontest_a_project_env_opt_out_covers_the_key_count
( project, usage, commands, monkeypatch, flag )
lib/cli/tests/test_run_usage.py:1247
Functiontest_a_project_env_opt_out_is_honored_without_loading_it
The crew loads the project's `.env`, so an opt-out there covers the command that starts it; the `.env` is read for that alone, never loaded.
lib/cli/tests/test_run_usage.py:1144
Functiontest_a_project_env_that_sends_requests_elsewhere_names_the_host_before_asking
A cloned project's `.env` can point the provider at its own server and leave the key out, to collect the one pasted here.
lib/cli/tests/test_api_keys.py:317
Functiontest_a_project_may_point_at_another_amp_but_never_gets_the_saved_login
A .env can send the request elsewhere — that is how a self-hosted project is wired — but the token goes only to an AMP this machine is logged in t
lib/cli/tests/experimental/test_eval_crew.py:432
Functiontest_a_project_script_that_fails
`uv run` exits 1 for a failed install, an import error and a crew that failed after kickoff alike, so the reason says only that the script failed;
lib/cli/tests/test_run_usage.py:999
Functiontest_a_project_that_is_not_a_crewai_crew_or_flow_is_not_checked
( project, children, monkeypatch, capsys, pyproject )
lib/cli/tests/test_api_keys.py:1025
Functiontest_a_project_that_says_what_good_means_is_graded_on_it
The file travels as it was written — comments and all — because what a criterion means is the grader's to read, not this command's.
lib/cli/tests/experimental/test_eval_crew.py:1253
Functiontest_a_project_that_turned_tracing_off_is_asked_first_at_a_terminal
( project, monkeypatch, capsys, usage, answer )
lib/cli/tests/experimental/test_eval_crew.py:3632
Functiontest_a_project_that_turned_tracing_off_is_not_asked_to_trace_toward_an_untrusted_amp
A yes there could only end in the crew not being run: no question.
lib/cli/tests/experimental/test_eval_crew.py:3921
Functiontest_a_project_that_turned_tracing_off_is_not_traced_even_for_crewai_eval
An explicit no is the project's; `crewai eval` asks to turn tracing on before it runs anything, and nothing here overrules it.
lib/crewai/tests/telemetry/test_deferred_trace_transitions.py:218
Functiontest_a_project_using_platform_tools_is_still_recorded
`crewai create crew` writes CREWAI_ENTERPRISE_ACTION_AUTH_TOKEN into the project's own .env, so it says "this developer uses platform tools", neve
lib/crewai/tests/telemetry/test_last_run.py:63
Functiontest_a_project_whose_code_passes_an_llm_is_not_checked_against_the_default
The model in code is unread, so crewAI's default may be in no use.
lib/cli/tests/test_api_keys.py:1302
Functiontest_a_project_with_nothing_to_say_sends_nothing
(project, monkeypatch)
lib/cli/tests/experimental/test_eval_crew.py:1267
Functiontest_a_project_without_an_id_sends_none
Read, never minted: a deploy does not rewrite pyproject.toml.
lib/cli/tests/deploy/test_deploy_main.py:2123
Functiontest_a_projects_env_key_still_replaces_the_one_the_process_has
( monkeypatch, tmp_path: Path )
lib/cli/tests/test_run_crew.py:1883
Functiontest_a_projects_env_line_with_no_key_never_replaces_a_key_pasted_this_run
A key pasted when `crewai run` asked, but not saved, must reach the crew even when `.env` still holds the placeholder or a blank line.
lib/cli/tests/test_run_crew.py:1844
Functiontest_a_projects_env_never_sets_or_replaces_crewai_evals_token
A `.env` that set CREWAI_EVAL_AWAITING_RUN could unmark a run `crewai eval` started (and its tracing would stop applying the command's rules).
lib/cli/tests/test_run_crew.py:1824
Functiontest_a_projects_error_in_a_module_under_google_is_not_named
`google` is a namespace package: a project's module can live in it.
lib/cli/tests/test_run_usage.py:724
Functiontest_a_projects_placeholder_is_loaded_when_the_process_has_no_key
crewAI then names the missing key, as it always has.
lib/cli/tests/test_run_crew.py:1895
Functiontest_a_prompt_placeholder_in_a_file_is_not_filled_in
(downloads)
lib/crewai/tests/agents/test_agent_spreadsheets.py:1096
Functiontest_a_providers_other_name_is_the_same_model_on_both_paths
`google/x` routes as `gemini/x`, so a key written either way matches an llm built in the block and one built before it, whichever name it used.
lib/crewai/tests/test_llm_overlay.py:849
Functiontest_a_proxy_a_project_env_sets_after_startup_is_not_used
`crewai run` on a JSON crew or a declarative flow, and `crewai.llm` on import, load the project's .env into the process. A cloned project must not
lib/crewai-core/tests/test_plus_api_proxy.py:235
Functiontest_a_proxy_the_machine_set_in_another_case_is_not_named
httpx reads `https_proxy` and `HTTPS_PROXY` alike: the same proxy is the user's.
lib/cli/tests/test_api_keys.py:377
Methodtest_a_publisher_chosen_version_cannot_pass_for_the_scan_status
AMP does not constrain versions, and another organization's public skill can choose one; the status AMP set comes first and the version
lib/cli/tests/skills/test_main.py:592
Methodtest_a_push_amp_holds_back_for_a_running_comparison_says_why_and_force_goes_ahead
( self, mock_display, mock_repository )
lib/cli/tests/deploy/test_deploy_main.py:539
Methodtest_a_push_from_a_zip_sends_it
(self, _display, mock_repository, _env, _zip)
lib/cli/tests/deploy/test_deploy_main.py:2111
Methodtest_a_push_from_git_sends_it
(self, _display, mock_repository)
lib/cli/tests/deploy/test_deploy_main.py:2091
Methodtest_a_pydantic_ref_that_is_not_a_conversation_state_is_composed
(self)
lib/crewai/tests/test_flow_conversation.py:2826
Functiontest_a_python_crew_keeps_a_shell_key_over_a_placeholder
A Python crew's own `load_dotenv` leaves the shell's key in place.
lib/cli/tests/test_api_keys.py:582
Functiontest_a_python_crew_keeps_an_empty_shell_key_over_the_env_files
`load_dotenv` leaves a variable the environment has, even an empty one, as a CI job with an unset secret exports.
lib/cli/tests/test_api_keys.py:1226
Functiontest_a_python_crew_reads_model_from_the_env_file
( project, children, no_prompt )
lib/cli/tests/test_api_keys.py:1180
Functiontest_a_python_crew_reads_the_llm_its_agents_yaml_sets
( project, children, no_prompt )
lib/cli/tests/test_api_keys.py:1326
Functiontest_a_python_crews_empty_shell_model_hides_the_env_files
The run keeps the shell's blank MODEL, so crewAI's default model runs.
lib/cli/tests/test_api_keys.py:1240
Functiontest_a_python_flow_given_inputs_without_a_kickoff_script
( project, usage, monkeypatch )
lib/cli/tests/test_run_usage.py:291
Functiontest_a_python_flow_module_that_does_not_import
( project, usage, error_classes, monkeypatch )
lib/cli/tests/test_run_usage.py:470
Functiontest_a_python_flow_module_without_exactly_one_flow_counts_no_error_class
Nothing raised there: the stop is counted without a class.
lib/cli/tests/test_run_usage.py:889
Functiontest_a_python_flow_that_cannot_be_constructed
( project, usage, error_classes, monkeypatch, flow_package, class_body, args )
lib/cli/tests/test_run_usage.py:515
Functiontest_a_python_flow_that_raises_its_own_error_counts_it_as_other
( project, usage, error_classes, monkeypatch, flow_package, raise_at, class_body, args )
lib/cli/tests/test_run_usage.py:865
Functiontest_a_python_flow_whose_kickoff_raises_counts_no_stop
A failure inside `kickoff()` is after kickoff; its own spans report it.
lib/cli/tests/test_run_usage.py:536
Functiontest_a_qualified_identity_cannot_name_a_non_exception_or_force_an_import
Resolution is gated on being an exception class, and never imports. ``os:getcwd`` resolves to a function, and ``json:JSONDecodeError`` is an exce
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:617
Functiontest_a_raised_deny_keeps_its_reason_out_of_the_llm_layer
(denying_llm)
lib/crewai/tests/hooks/test_hook_abort_propagation.py:102
Functiontest_a_raising_guardrail_keeps_the_exception_for_the_caller
()
lib/crewai/tests/test_guardrail_events_on_exception.py:63
Functiontest_a_raising_guardrail_still_reports_the_validation_it_started
()
lib/crewai/tests/test_guardrail_events_on_exception.py:29
Functiontest_a_raising_lazy_hook_cannot_degrade_the_event
A hook raising anything but AttributeError must not escape validation. ``getattr(obj, name, None)`` only swallows ``AttributeError``. Anything el
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:693
Functiontest_a_rate_limit_answer_breaks_a_streak_of_unreachable_polls
POLL_RETRIES counts a streak of 5xx (or unreachable) polls; a 429 is AMP answering, so it breaks the streak like any other answer.
lib/cli/tests/experimental/test_eval_crew.py:743
Functiontest_a_rate_limit_that_never_lifts_ends_the_wait_and_a_passing_one_does_not
Rate-limited without a break for UNANSWERED_FOR_AT_MOST_SECONDS the wait stops, saying the evaluation keeps running; AMP's answer about the ev
lib/cli/tests/experimental/test_eval_crew.py:665
Functiontest_a_rate_limited_poll_waits_what_amp_asks_and_keeps_waiting
AMP limits evaluation requests per IP; a models comparison on prod (2026-10-14) ended its CLI with exit 1 on one 429 while the deployment went
lib/cli/tests/experimental/test_eval_crew.py:627
Functiontest_a_re_run_inside_the_project_env_asks_nothing
( project, children, no_prompt, monkeypatch )
lib/cli/tests/test_api_keys.py:996
Functiontest_a_re_run_that_fails_leaves_its_stop_to_the_re_run
( project, usage, monkeypatch )
lib/cli/tests/test_run_usage.py:1032
Functiontest_a_react_agent_queries_every_row
(downloads, entry)
lib/crewai/tests/agents/test_agent_spreadsheets.py:231
Functiontest_a_real_agent_project_is_asked_for_its_models_key
An OpenAI-compatible model builds without its key, as a native one does, so the loaded Agent reaches the prompt instead of failing as it loads.
lib/cli/tests/test_run_agent.py:425
Methodtest_a_real_custom_route_still_auto_enables_the_router
(self)
lib/crewai/tests/test_flow_conversation.py:3132
Functiontest_a_record_without_a_time_is_graded_as_it_is
Nothing to compare against: grading the run beats running the crew for nothing.
lib/cli/tests/experimental/test_eval_crew.py:3449
Methodtest_a_ref_outside_the_project_root_is_refused
Declarations may not reach outside the project to import code.
lib/crewai/tests/test_flow_conversation.py:2641
Methodtest_a_ref_resolves_next_to_the_declaration_not_the_cwd
A flow loaded by path finds the model sitting beside its YAML. Resolution used to fall back to ``Path.cwd()``, so the same project lo
lib/crewai/tests/test_flow_conversation.py:2597
← previousnext →10,301–10,400 of 19,482, ranked by callers