MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions20,757 in github.com/crewAIInc/crewAI

Functiontest_a_progress_line_is_said_once_even_when_parallel_setups_alternate
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:1828
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:886
Functiontest_a_project_env_does_not_choose_where_the_refresh_token_goes
`crewai run` loads a cloned project's .env into the process before a refresh. Its proxy must not see the long-lived refresh token, and its CA
lib/crewai-core/tests/test_plus_api_proxy.py:360
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:457
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:1278
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:4211
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:4500
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:222
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:1292
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:2183
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_env_without_a_marker_leaves_the_coding_agent_counted
( amp, project, coding_agent )
lib/cli/tests/authentication/test_placeholder.py:534
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:241
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:555
Functiontest_a_push_amp_refuses_is_retried_with_a_new_account
(amp, project, coding_agent)
lib/cli/tests/authentication/test_placeholder.py:392
Methodtest_a_push_from_a_zip_sends_it
(self, _display, mock_repository, _env, _zip)
lib/cli/tests/deploy/test_deploy_main.py:2171
Methodtest_a_push_from_git_sends_it
(self, _display, mock_repository)
lib/cli/tests/deploy/test_deploy_main.py:2151
Methodtest_a_pydantic_ref_that_is_not_a_conversation_state_is_composed
(self)
lib/crewai/tests/test_flow_conversation.py:2829
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_question_left_to_time_out_is_not_now
The question was shown and nobody typed: uploads nothing and, as the "(20s timeout)" prompt and the docs say, is saved as Not now.
lib/crewai/tests/telemetry/test_trace_consent_asked.py:276
Functiontest_a_question_that_cannot_be_rendered_is_not_answered
(monkeypatch, usage)
lib/crewai/tests/telemetry/test_trace_consent_asked.py:541
Functiontest_a_question_whose_answer_cannot_be_read_is_not_answered
Reading the answer failed: that is no answer, not a no.
lib/crewai/tests/telemetry/test_trace_consent_asked.py:531
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:768
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:690
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:652
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:3135
Functiontest_a_real_login_wins_over_any_temporary_account
( amp, project, coding_agent, capsys )
lib/cli/tests/authentication/test_placeholder.py:316
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:3663
Functiontest_a_recorded_yes_at_a_terminal_uploads_without_asking_again
( capsys, linked_grants, terminal_answer )
lib/crewai/tests/telemetry/test_trace_consent_asked.py:923
Functiontest_a_redirected_store_is_neither_a_login_nor_an_account
A `.env` that points HOME elsewhere moves the store `TokenManager` reads; a login or temporary account found there may be somebody else's. Nei
lib/crewai/tests/telemetry/test_placeholder_traces.py:632
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:2644
Methodtest_a_ref_outside_the_schema_is_refused_without_fetching_it
( self, ref: str, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:549
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:2600
Methodtest_a_ref_without_a_dot_is_rejected_at_load
(self)
lib/crewai/tests/test_flow_conversation.py:2659
Methodtest_a_refresh_token_cannot_be_saved_without_its_endpoint
(self)
lib/crewai-core/tests/test_auth_refresh.py:244
Functiontest_a_refreshed_grant_still_records_the_run_once
( collector, recorded_runs, monkeypatch, capsys, credential )
lib/crewai/tests/telemetry/test_session_trace_export.py:327
Functiontest_a_refusal_mid_poll_names_the_evaluation_and_an_unknown_status_stops_the_wait
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:812
Functiontest_a_refused_comparison_is_not_counted
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:1982
Functiontest_a_refused_export_says_why_in_one_sentence_and_exits_1
(project, monkeypatch, answer, logged_in, said)
lib/cli/tests/experimental/test_eval_crew.py:3528
Functiontest_a_refused_grant_runs_untraced_and_says_why
A trace is a record of the run, not a condition of it: an expired login must not fail the crew. The run completes, nothing is uploaded, the contex
lib/crewai/tests/telemetry/test_trace_lifecycle.py:345
Functiontest_a_refused_save_says_amps_own_words
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:4637
Functiontest_a_refused_start_counts_why_and_says_what_it_always_said
( project, monkeypatch, capsys, usage, status, reason )
lib/cli/tests/experimental/test_eval_crew.py:2371
Functiontest_a_refused_start_is_a_stop_with_an_id_and_no_start
(project, monkeypatch, counted)
lib/cli/tests/experimental/test_eval_crew.py:1053
Methodtest_a_rejected_create_reports_the_api_class_and_status
A 4xx names the class and carries the exact code; the message never leaves.
lib/cli/tests/deploy/test_deploy_main.py:1184
Functiontest_a_rejected_login_at_a_terminal_logs_in_once_and_evaluates
(project, monkeypatch, capsys, usage, logins)
lib/cli/tests/experimental/test_eval_crew.py:2414
Functiontest_a_rejected_login_hands_the_terminal_to_a_login_and_evaluates_once_more
( rejected_login, )
lib/cli/tests/test_crew_run_tui.py:3513
Methodtest_a_rejected_refresh_token_counts_as_rejected
( self, endpoint: FakeTokenEndpoint, usage: list[str] )
lib/crewai-core/tests/test_auth_refresh.py:1015
Methodtest_a_rejection_in_the_servers_own_words_is_recovered
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:529
Methodtest_a_rejection_is_remembered_only_once_the_async_retry_succeeds
( self, monkeypatch )
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:420
Methodtest_a_rejection_is_remembered_only_once_the_retry_succeeds
A retry that dies for another reason has not established the fallback. Remembering before the retry would silently stop sending a configured
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:379
Methodtest_a_rejection_other_than_invalid_grant_keeps_the_login
( self, endpoint: FakeTokenEndpoint, clock: FakeClock, caplog: pytest.LogCaptu
lib/crewai-core/tests/test_auth_refresh.py:398
Methodtest_a_rejection_outside_the_openai_shape_is_recovered
( self, monkeypatch, error )
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:570
Functiontest_a_remote_agents_text_is_not_read_for_urls
(downloads, monkeypatch)
lib/crewai/tests/agents/test_agent_spreadsheets.py:897
Methodtest_a_remote_ref_in_a_circular_schema_is_refused
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:586
Methodtest_a_renewal_counts_as_renewed
( self, endpoint: FakeTokenEndpoint, usage: list[str] )
lib/crewai-core/tests/test_auth_refresh.py:1000
Functiontest_a_report_url_that_is_not_a_web_address_is_dropped_with_a_note
(monkeypatch)
lib/cli/tests/experimental/test_eval_crew.py:1231
Functiontest_a_request_the_signer_cannot_sign_never_reaches_the_server
(mcp_server)
lib/crewai/tests/mcp/test_mcp_auth.py:285
Functiontest_a_request_without_the_login_names_no_organization
AMP reads the organization header only beside a credential, so without one it says nothing — except, to an AMP this machine is not logged in to,
lib/cli/tests/experimental/test_eval_crew.py:1246
Functiontest_a_rerun_from_the_run_app_trusts_only_what_the_app_says
The run app's process loaded the project's `.env` already, so its CREWAI_PLUS_URL cannot vouch for itself: the app passes this machine's AMPs,
lib/cli/tests/experimental/test_eval_crew.py:4369
Methodtest_a_restored_outer_flow_id_keeps_the_agent_out_of_the_boundary
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:376
Functiontest_a_restored_task_nothing_was_added_to_reads_its_url
(downloads, tmp_path)
lib/crewai/tests/agents/test_agent_spreadsheets.py:859
Functiontest_a_result_cannot_close_or_open_a_data_block
(db, leak)
lib/crewai/tests/agents/test_tool_approval.py:429
Methodtest_a_retry_failing_for_another_reason_surfaces
Only the refused "none" moves the call; anything else is the caller's.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:568
← previousnext →11,001–11,100 of 20,757, ranked by callers