Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,663 in github.com/crewAIInc/crewAI
⨍
Functions
19,663
◇
Types & classes
3,456
↳
Endpoints
994
Method
test_a_gateway_lesson_stays_on_that_gateway
(self)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:631
Method
test_a_gateway_rejection_does_not_silence_the_model_on_openai
However the gateway is configured, its rejection is keyed to it, not to OpenAI.
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:661
Function
test_a_gemini_key_under_googles_name_counts
( project, children, no_prompt, monkeypatch )
lib/cli/tests/test_api_keys.py:954
Method
test_a_git_helper_error_is_not_a_zip_error
The git helpers raise plain ValueError; only ArchiveError is a ZIP problem.
lib/cli/tests/deploy/test_deploy_main.py:1278
Method
test_a_git_push_prints_no_commit
(self, mock_display, mock_repository)
lib/cli/tests/deploy/test_deploy_main.py:1807
Method
test_a_git_source_type_redeploys_from_git_even_without_origin
( self, mock_display, mock_repository, mock_create_project_zip )
lib/cli/tests/deploy/test_deploy_main.py:911
Function
test_a_gitignore_link_already_in_the_folder_is_replaced_never_followed
( project, monkeypatch )
lib/cli/tests/experimental/test_eval_crew.py:3106
Function
test_a_header_row_asked_for_is_the_one_returned_while_another_is_cached
Another caller caching a different header row right after this one's table is cached must not swap the table this caller gets back.
lib/crewai-files/tests/spreadsheets/test_reading.py:802
Method
test_a_header_row_off_the_sheet_says_the_range
(self, row)
lib/crewai-files/tests/spreadsheets/test_reading.py:447
Function
test_a_higher_crewai_setting_is_clamped_to_the_ceiling_with_one_warning
Above the ceiling, several bounded attributes would not fit one Wharf request; the setting is clamped, said once, never silently raised.
lib/crewai/tests/telemetry/test_span_attribute_bound.py:292
Function
test_a_json_agent_without_an_llm_is_checked_against_the_model_crewai_picks
( project, children, no_prompt, env, key )
lib/cli/tests/test_api_keys.py:1141
Function
test_a_json_crew_definition_that_cannot_be_loaded
( project, usage, error_classes )
lib/cli/tests/test_run_usage.py:438
Function
test_a_json_crew_file_that_does_not_parse_is_left_to_the_run
( project, children, no_prompt )
lib/cli/tests/test_api_keys.py:1107
Function
test_a_json_crew_missing_a_required_input
Counted by the project-env process that loads the crew: its parent counted the start.
lib/cli/tests/test_run_usage.py:371
Function
test_a_json_crew_reads_its_agents_and_crew_jsonc_past_comments
( project, children, no_prompt )
lib/cli/tests/test_api_keys.py:1055
Function
test_a_json_crew_saved_with_a_utf8_bom_is_read
( project, children, no_prompt )
lib/cli/tests/test_api_keys.py:1092
Function
test_a_json_crew_setting_outside_the_agents_llm_still_names_its_host
crewAI builds clients from more than an agent's `llm`, and an llm's `client_params` override its `base_url`.
lib/cli/tests/test_api_keys.py:734
Function
test_a_json_crew_stopped_for_its_key_names_the_host_its_env_sends_requests_to
Without a terminal, the line to add is all a person or agent reads.
lib/cli/tests/test_run_usage.py:1456
Function
test_a_json_crew_that_does_not_load_for_an_error_that_is_its_own_cause_counts_load_failed
( project, usage, error_classes, monkeypatch, terminal )
lib/cli/tests/test_run_usage.py:1521
Function
test_a_json_crew_that_does_not_load_for_another_reason_counts_load_failed
( project, usage, error_classes )
lib/cli/tests/test_run_usage.py:1507
Function
test_a_json_crew_that_fails_at_kickoff_for_another_reason_raises_as_before
( project, usage, monkeypatch, error )
lib/cli/tests/test_run_usage.py:1487
Function
test_a_json_crew_whose_model_cannot_be_built_counts_why
crewAI raises any failure to build a model as an ImportError, which the JSON loader wraps in a JSONProjectError naming the agent's file: the class
lib/cli/tests/test_run_usage.py:813
Function
test_a_json_crew_whose_run_fails_counts_as_failed
The real `crewai run` on a JSON crew whose run exits 1 in the project's environment: it raises SystemExit(1), which the command used to let throug
lib/cli/tests/experimental/test_eval_crew.py:4707
Function
test_a_json_crew_without_its_key_stops_with_the_line_to_add
A provider raises for its key once kickoff calls the model, after the agent's retries; with crewai 1.15.34 to 1.15.37 an OpenAI-compatible one
lib/cli/tests/test_run_usage.py:1435
Function
test_a_json_crew_without_the_crewai_package
(usage, monkeypatch)
lib/cli/tests/test_run_usage.py:415
Function
test_a_json_crews_blank_env_model_hides_the_shells
A JSON crew's run applies the `.env`'s blank MODEL over the shell's, so crewAI's default model runs.
lib/cli/tests/test_api_keys.py:1254
Function
test_a_json_crews_custom_tool_that_sets_an_endpoint_names_its_host
A JSON crew's custom tools are imported before its agents build their llm.
lib/cli/tests/test_api_keys.py:598
Function
test_a_json_crews_env_model_is_checked_over_the_shells
A JSON crew's run applies the project's `.env` MODEL over the shell's, so an agent with no llm needs that provider's key.
lib/cli/tests/test_api_keys.py:665
Function
test_a_json_crews_manager_agent_and_json_agent_files_are_read
( project, children, no_prompt )
lib/cli/tests/test_api_keys.py:1155
Function
test_a_json_project_error_that_is_its_own_cause_is_named_once
crewAI's providers re-raise with `raise e from e`; the walk ends there.
lib/cli/tests/test_run_usage.py:742
Function
test_a_jsonc_comment_ended_by_a_carriage_return_hides_no_endpoint
Files are read in text mode, so a lone `\\r` is a line end before any comment is stripped, here as in crewAI's own loader.
lib/cli/tests/test_api_keys.py:621
Function
test_a_key_in_the_env_file_asks_nothing_and_stays_unloaded
( project, children, no_prompt )
lib/cli/tests/test_api_keys.py:940
Function
test_a_key_in_the_environment_asks_nothing
( project, children, no_prompt, monkeypatch )
lib/cli/tests/test_api_keys.py:927
Function
test_a_key_is_not_saved_to_an_env_file_others_can_read_and_that_cannot_be_made_private
Saved, the key would stay readable by every other account on the machine.
lib/cli/tests/test_api_keys.py:287
Function
test_a_key_missing_from_the_env_file_above_is_named_there_not_saved
A `.env` made in the project would hide the one above from crewAI.
lib/cli/tests/test_api_keys.py:819
Function
test_a_key_that_cannot_be_saved_is_still_handed_to_the_run
( project, children, monkeypatch, capsys )
lib/cli/tests/test_api_keys.py:253
Function
test_a_key_the_process_only_inherited_is_replaced_by_the_placeholder
The `.env` can also point the provider at its own host: the shell's key must not go there, so the placeholder applies, and a `.env` cannot claim
lib/cli/tests/test_run_crew.py:1862
Function
test_a_kickoff_with_a_spreadsheet_url_queries_every_row
(downloads, entry)
lib/crewai/tests/agents/test_agent_spreadsheets.py:215
Function
test_a_later_stop_in_the_same_app_does_not_inherit_an_ended_evaluations_id
A long-lived run app: one evaluation ends (a verdict, a failed evaluation, or a stop the app counts after `evaluate_run` raised), then a later
lib/cli/tests/experimental/test_eval_crew.py:1096
Method
test_a_lesson_from_one_endpoint_stays_there
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:392
Function
test_a_link_at_the_logs_place_leaves_the_output_on_screen
(tmp_path, capfd)
lib/cli/tests/experimental/test_eval_crew.py:4427
Function
test_a_link_on_the_way_keeps_the_data_out_of_wherever_it_leads
Whoever made `.crewai` or `.crewai/evaluations` a link chose where it leads: nothing is written there, by either way of writing an export.
lib/cli/tests/experimental/test_eval_crew.py:4119
Function
test_a_link_where_a_file_goes_is_replaced_never_written_through
(project, monkeypatch, capsys, writes, link)
lib/cli/tests/experimental/test_eval_crew.py:3086
Function
test_a_linked_env_file_is_never_replaced
( project, children, monkeypatch, capsys )
lib/cli/tests/test_api_keys.py:839
Function
test_a_list_amp_would_refuse_is_refused_here_with_an_example
(text, said)
lib/cli/tests/experimental/test_eval_crew.py:2042
Function
test_a_litellm_routed_llm_keeps_its_key_on_the_same_provider_only
Same provider is a question about the provider, not the class: an `LLM(...)` the caller routed through LiteLLM keeps its key and endpoint when
lib/crewai/tests/test_llm_overlay.py:775
Method
test_a_live_class_on_a_python_flow_is_untouched
(self)
lib/crewai/tests/test_flow_conversation.py:2662
Method
test_a_live_class_projects_as_a_python_ref
(self)
lib/crewai/tests/test_flow_conversation.py:2766
Method
test_a_live_llm_object_is_passed_through_untouched
(self)
lib/crewai/tests/test_flow_conversation.py:2935
Function
test_a_load_failed_stop_names_the_error_behind_it_and_nothing_of_the_project
( project, usage, error_classes, make_error, error_class )
lib/cli/tests/test_run_usage.py:715
Method
test_a_local_file_over_the_limit_is_refused_unread
(self, tmp_path, monkeypatch)
lib/crewai-files/tests/spreadsheets/test_loading.py:150
Function
test_a_location_that_is_not_a_list_of_names_is_no_location
A string must not skip the wait or print one character per place; anything else is no location either.
lib/cli/tests/experimental/test_eval_crew.py:1883
Function
test_a_logged_in_deploy_counts_no_hurdle
(monkeypatch, deploy_usage)
lib/cli/tests/test_crew_run_tui.py:2591
Function
test_a_login_amp_still_refuses_is_not_offered_twice
(project, monkeypatch, capsys, usage, logins)
lib/cli/tests/experimental/test_eval_crew.py:2429
Function
test_a_login_amp_still_refuses_on_this_screen_is_not_offered_twice
( rejected_login, )
lib/cli/tests/test_crew_run_tui.py:3163
Function
test_a_login_prompt_that_succeeds_counts_the_prompt_only
(monkeypatch, deploy_usage)
lib/cli/tests/test_crew_run_tui.py:2600
Function
test_a_login_that_cannot_be_read_is_shown_on_screen
A credential that exists but cannot be read stops the evaluation, and the sentence has to reach the screen: printing it would land under the l
lib/cli/tests/test_crew_run_tui.py:360
Function
test_a_login_that_does_not_complete_comes_back_to_the_app_and_says_why
( rejected_login, raised, reason, said )
lib/cli/tests/test_crew_run_tui.py:3145
Function
test_a_login_that_does_not_complete_stops_with_why
(project, monkeypatch, capsys, usage, logins, raised, reason, said)
lib/cli/tests/experimental/test_eval_crew.py:2413
Function
test_a_login_that_ends_badly_is_counted_and_still_raised
Counting must not change what the user sees: the error still escapes.
lib/cli/tests/test_crew_run_tui.py:2637
Method
test_a_long_name_is_cut_to_a_hundred_characters
(self)
lib/crewai-files/tests/spreadsheets/test_loading.py:326
Function
test_a_long_run_of_closing_parentheses_is_read_quickly
(downloads)
lib/crewai/tests/agents/test_agent_spreadsheets.py:1120
Method
test_a_longer_name_ending_in_a_package_is_left_alone
( self, tmp_path: Path )
lib/devtools/tests/test_toml_updates.py:550
Function
test_a_lower_crewai_setting_is_honoured
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/telemetry/test_span_attribute_bound.py:283
Method
test_a_lying_member_that_inflates_past_the_cap_is_refused
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:182
Function
test_a_malformed_guardrail_result_still_reports_the_validation_it_started
( returned: Any, error_type: str )
lib/crewai/tests/test_guardrail_events_on_exception.py:84
Function
test_a_mapped_model_is_not_mapped_again
A chain of keys is one step: the model a key maps to is built as it is.
lib/crewai/tests/test_llm_overlay.py:652
Method
test_a_mapping_without_a_model_key_says_so
(self)
lib/crewai/tests/test_flow_conversation.py:2944
Function
test_a_marker_from_an_earlier_run_never_counts_for_this_one
A project keeps one marker, and the one from an earlier `crewai eval` is not about the run this command just watched — it is older than it.
lib/cli/tests/experimental/test_eval_crew.py:1395
Function
test_a_marker_in_the_payload_never_marks_a_save_that_was_not_whole
AMP cannot send the marker: with one file skipped, a forged marker would have made a partial save read as whole, never tried again and kept over a
lib/cli/tests/experimental/test_eval_crew.py:4493
Method
test_a_member_smaller_than_it_declares_is_refused
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:186
Method
test_a_member_that_inflates_past_its_declared_size_is_refused
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:178
Function
test_a_message_cannot_be_passed_as_the_error_type_at_all
The field takes the exception *class*, so a message is rejected structurally. An identifier check on a name is not sufficient on its own -- a one
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:162
Function
test_a_message_containing_a_colon_is_never_stored
Messages routinely contain colons, and must not be mistaken for an identity.
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:646
Function
test_a_missing_api_key_is_reported_as_its_type
An OpenAI-compatible provider used to report it as an ``ImportError``; it now raises it on the first call, as the native providers do.
lib/crewai/tests/telemetry/test_flow_telemetry.py:222
Function
test_a_missing_key_at_a_terminal_counts_whether_one_was_saved
( project, usage, commands, monkeypatch, answers, outcome )
lib/cli/tests/test_run_usage.py:1210
Method
test_a_missing_key_inside_an_agents_validation_error
( self, tmp_path: Path )
lib/crewai/tests/llms/test_missing_api_key.py:537
Method
test_a_missing_key_raised_as_itself
(self, tmp_path: Path)
lib/crewai/tests/llms/test_missing_api_key.py:531
Function
test_a_missing_key_without_a_terminal_counts_one_warning
( project, usage, commands, monkeypatch )
lib/cli/tests/test_run_usage.py:1191
Function
test_a_missing_or_broken_record_reads_as_none
(project)
lib/crewai/tests/telemetry/test_last_run.py:82
Function
test_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
Function
test_a_model_key_that_names_no_model_is_refused
()
lib/crewai/tests/test_llm_overlay.py:736
Function
test_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
Function
test_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
Method
test_a_model_that_refuses_none_is_not_recorded
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:401
Method
test_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
Function
test_a_model_without_a_single_known_key_asks_nothing
( project, children, no_prompt, model )
lib/cli/tests/test_api_keys.py:983
Function
test_a_model_without_its_provider_exits_one_before_anything_is_sent
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:2049
Function
test_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
Function
test_a_name_that_only_starts_like_a_windows_device_is_written
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:2998
Function
test_a_name_that_starts_with_a_quote_is_found
()
lib/crewai/tests/agents/test_agent_spreadsheets.py:1251
Function
test_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
Method
test_a_namespace_prefix_on_cells_is_still_measured
( self, calamine_must_not_open )
lib/crewai-files/tests/spreadsheets/test_reading.py:275
Function
test_a_native_provider_prefix_is_still_its_own
()
lib/crewai/tests/test_llm_overlay.py:824
Method
test_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
Function
test_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
Function
test_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
Method
test_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
Method
test_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
Method
test_a_non_model_response_format_is_omitted_from_the_projection
( self, caplog: pytest.LogCaptureFixture )
lib/crewai/tests/test_flow_conversation.py:2693
← previous
next →
10,301–10,400 of 19,663, ranked by callers