MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,663 in github.com/crewAIInc/crewAI

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:3412
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
Methodtest_a_ref_without_a_dot_is_rejected_at_load
(self)
lib/crewai/tests/test_flow_conversation.py:2656
Functiontest_a_refreshed_grant_still_records_the_run_once
( collector, recorded_runs, monkeypatch, capsys, credential )
lib/crewai/tests/telemetry/test_session_trace_export.py:267
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:787
Functiontest_a_refused_comparison_is_not_counted
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:1957
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:3314
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:335
Functiontest_a_refused_save_says_amps_own_words
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:4058
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:2346
Functiontest_a_refused_start_is_a_stop_with_an_id_and_no_start
(project, monkeypatch, counted)
lib/cli/tests/experimental/test_eval_crew.py:1028
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:1168
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:2388
Functiontest_a_rejected_login_hands_the_terminal_to_a_login_and_evaluates_once_more
( rejected_login, )
lib/cli/tests/test_crew_run_tui.py:3119
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_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
Functiontest_a_report_url_that_is_not_a_web_address_is_dropped_with_a_note
(monkeypatch)
lib/cli/tests/experimental/test_eval_crew.py:1206
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:1221
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:3790
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
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
Functiontest_a_reused_crew_kicked_off_for_another_input_reverts_to_the_declared_llm
One `Crew` object, several kickoffs with different inputs, one block. The mapped model applies while the interpolated role is a key. An input
lib/crewai/tests/test_llm_overlay.py:253
← previousnext →10,401–10,500 of 19,663, ranked by callers