MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

Functiontest_native_provider_falls_back_to_litellm_when_not_in_supported_list
Test that when a provider is not in SUPPORTED_NATIVE_PROVIDERS, we fall back to LiteLLM.
lib/crewai/tests/test_llm.py:1034
Functiontest_native_provider_raises_error_when_supported_but_fails
Test that when a native provider is in SUPPORTED_NATIVE_PROVIDERS but fails to instantiate, we raise the error.
lib/crewai/tests/test_llm.py:1017
Methodtest_native_step_loop_keeps_its_result
(self)
lib/crewai/tests/tools/test_tool_failure.py:2243
Methodtest_native_step_preserves_tool_result_when_final_answer_is_empty
The planner should receive evidence from a successful native tool call.
lib/crewai/tests/agents/test_agent_executor.py:968
Methodtest_native_step_sees_the_warning_before_the_stop
(self)
lib/crewai/tests/tools/test_tool_failure.py:2277
Methodtest_native_step_streak_completed_mid_batch_still_ends_the_step
(self)
lib/crewai/tests/tools/test_tool_failure.py:2254
Functiontest_native_structured_output_async
(model)
lib/crewai/tests/llms/anthropic/test_anthropic.py:2055
Functiontest_native_structured_output_async_streaming
(model)
lib/crewai/tests/llms/anthropic/test_anthropic.py:2101
Functiontest_native_structured_output_keeps_caller_tools
The native path leaves the caller's tools in place; the fallback replaces them.
lib/crewai/tests/llms/anthropic/test_anthropic.py:2123
Functiontest_native_structured_output_sync
Current Claude models ask the API for JSON directly, not via a forced tool.
lib/crewai/tests/llms/anthropic/test_anthropic.py:2032
Functiontest_native_structured_output_sync_streaming
(model)
lib/crewai/tests/llms/anthropic/test_anthropic.py:2077
Functiontest_native_tool_calling_error_handling
Test that native tool calling handles errors properly and emits error events.
lib/crewai/tests/agents/test_native_tool_calling.py:962
Functiontest_native_tool_calling_uses_native_task_slice_in_prompt_slot
()
lib/crewai/tests/utilities/test_prompts_custom_templates.py:28
Methodtest_native_tools_uses_native_task_slice
Test that native tool calling uses native_task slice.
lib/crewai/tests/utilities/test_prompts_no_thought_leakage.py:91
Functiontest_native_trace_lifetime_includes_every_custom_reply
(monkeypatch, trace_scope)
lib/crewai/tests/telemetry/test_conversation_spans.py:69
Functiontest_native_turn_and_stream_contracts_are_unchanged
()
lib/crewai/tests/test_flow_turns.py:226
Functiontest_navigate_command
Test the 'navigate' command functionality.
lib/crewai-tools/tests/tools/stagehand_tool_test.py:156
Functiontest_negative_context_window_size_is_rejected
(value: int)
lib/crewai/tests/llms/test_context_window.py:664
Functiontest_negative_dot_threshold_filters_by_max_distance
(source)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:1299
Methodtest_negative_index
(self)
lib/crewai-tools/tests/tools/tool_collection_test.py:60
Methodtest_negative_max_distance_raises
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:177
Functiontest_negative_seconds_is_rejected
(tool)
lib/crewai-tools/tests/tools/wait_tool_test.py:55
Functiontest_negative_seconds_is_rejected_when_passed_positionally
(mock_sleep, tool)
lib/crewai-tools/tests/tools/wait_tool_test.py:61
Methodtest_neighbors_empty
(self)
lib/crewai/tests/test_event_record.py:92
Functiontest_neither_agent_drops_a_message_when_the_tail_is_not_a_user_turn
The role-sequence check only agrees on a list ending in a user message. `Agent` has a task slot in its prompt and `LiteAgent` does not, so when t
lib/crewai/tests/agents/test_agent_kickoff_message_history.py:99
Methodtest_nested_agent_executor_flow_does_not_finalize_parent_batch
( self, )
lib/crewai/tests/test_flow_conversation.py:2182
Functiontest_nested_and_or_conditions
Test nested conditions like or_(and_(A, B), and_(C, D)). Reproduces bug from issue #3719 where nested conditions are flattened, causing prema
lib/crewai/tests/test_flow.py:1228
Functiontest_nested_consent_callbacks_restore_previous_context
(collector)
lib/crewai/tests/telemetry/test_session_trace_export.py:658
Methodtest_nested_crew_completion_skips_finalize
(self)
lib/crewai/tests/test_flow_conversation.py:2097
Functiontest_nested_execution_inherits_and_only_owner_clears
()
lib/crewai/tests/test_execution_uuid.py:50
Methodtest_nested_filters_validated
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1061
Functiontest_nested_memory_save_event_is_hidden_for_save_to_memory_tool
()
lib/cli/tests/test_crew_run_tui.py:1094
Methodtest_nested_module_attribute
(self)
lib/crewai/tests/test_callback.py:227
Methodtest_nested_object_creates_model
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:200
Methodtest_nested_object_property_keeps_its_name
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:549
Functiontest_nested_overlay_restores_the_outer_one
()
lib/crewai/tests/test_llm_overlay.py:90
Methodtest_nested_push
(self)
lib/crewai/tests/events/test_event_context.py:43
Functiontest_nested_python_definition_retains_package_parent_imports
(project)
lib/crewai/tests/project/test_agent_project.py:300
Functiontest_nested_read_locks_same_thread
()
lib/crewai/tests/utilities/events/test_rw_lock.py:244
Methodtest_nested_ref_resolution
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:774
Methodtest_nested_scopes
(self)
lib/crewai/tests/events/test_event_context.py:166
Functiontest_network_error_handling
(mock_post, tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:149
Functiontest_never_cache_function_restores_without_opt_in
A restored never-cache tool is saved by name; restoring that checkpoint again must not need the opt-in, nor fall back to a default that caches.
lib/crewai/tests/tools/test_deserialization_guard.py:102
Methodtest_never_raises_on_unexpected_input
(self)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:466
Methodtest_never_raises_returns_nones_or_coerces
(self, bad_input: Any)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:523
Functiontest_never_returns_env_var_value
The detected name must never leak the environment variable's contents.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:358
Functiontest_new_catalog_models_use_their_documented_context_windows
( model: str, sizes: dict[str, int], raw_context_window: int )
lib/crewai/tests/llms/test_context_window.py:162
Methodtest_new_fields_default_to_zero
(self)
lib/crewai/tests/events/test_llm_usage_event.py:287
Methodtest_new_version_nav_is_cloned_from_edge_not_previous
( self, tmp_path: Path )
lib/devtools/tests/test_docs_versioning.py:154
Functiontest_news_refine_request_payload_passes_all_params
(news_tool)
lib/crewai-tools/tests/tools/brave_search_tool_test.py:268
Functiontest_news_search_end_to_end
(mock_get, news_tool)
lib/crewai-tools/tests/tools/brave_search_tool_test.py:396
Methodtest_next_chain_follows_sequence_order
(self)
lib/crewai/tests/test_event_record.py:229
Methodtest_next_pending_property
Test next_pending returns the first pending item.
lib/crewai/tests/utilities/test_planning_types.py:197
Methodtest_next_pending_returns_none_when_no_pending
Test next_pending returns None when no pending items.
lib/crewai/tests/utilities/test_planning_types.py:204
Functiontest_next_tool_does_not_mark_unfinished_tool_successful
()
lib/cli/tests/test_crew_run_tui.py:990
Methodtest_no_band_can_carry_a_precise_core_count
Every emittable value is a short opaque label, as for the sibling signals.
lib/crewai-core/tests/test_runtime_env.py:194
Methodtest_no_blocked_by_hook_reason_exists
(self)
lib/crewai/tests/tools/test_tool_failure.py:1556
Methodtest_no_checkpoints
(self, capsys: pytest.CaptureFixture[str])
lib/crewai/tests/test_checkpoint_cli.py:452
Methodtest_no_chunk_if_within_limit
Test that small PDFs are returned unchanged.
lib/crewai-files/tests/processing/test_transformers.py:179
Methodtest_no_chunk_if_within_limit
Test that small text files are returned unchanged.
lib/crewai-files/tests/processing/test_transformers.py:234
Methodtest_no_context_leakage_between_crews
(self, mock_execute_task, crew_factory)
lib/crewai/tests/test_crew_thread_safety.py:200
Methodtest_no_count_when_the_guard_does_not_stop
( self, features: list[str], steps: list[list[str]] )
lib/crewai/tests/tools/test_tool_failure.py:2509
Methodtest_no_deps_returns_unchanged
(self)
lib/devtools/tests/test_toml_updates.py:367
Methodtest_no_double_slashes_in_result
Final scope should not have double slashes.
lib/crewai/tests/memory/test_memory_root_scope.py:310
Methodtest_no_duplicate_reply_when_handler_trims_history
(self)
lib/crewai/tests/test_flow_conversation.py:1562
Functiontest_no_duration_is_reported_without_a_recorded_start
A completion with no observed start reports nothing, and does not raise. A conversational turn can re-emit completion for a restored run, so the
lib/crewai/tests/telemetry/test_flow_telemetry.py:450
Methodtest_no_event_on_empty_fast_path
(self)
lib/crewai/tests/hooks/test_dispatch.py:210
Methodtest_no_execution_end_when_execution_start_aborts
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:538
Methodtest_no_failure_recorded_for_a_working_tool
(self)
lib/crewai/tests/tools/test_tool_failure.py:1733
Functiontest_no_inject_date
()
lib/crewai/tests/test_task.py:464
Methodtest_no_instructions_at_instructions_level
(self, tmp_path: Path)
lib/crewai/tests/skills/test_loader.py:278
Methodtest_no_job_depends_on_it_in_native_task
Test that 'your job depends on it' is not in native task prompts.
lib/crewai/tests/utilities/test_prompts_no_thought_leakage.py:136
Methodtest_no_job_depends_on_it_in_no_tools
Test that 'your job depends on it' is not in no-tools prompts.
lib/crewai/tests/utilities/test_prompts_no_thought_leakage.py:116
Methodtest_no_metadata_by_default
(self)
lib/crewai/tests/skills/test_models_version.py:13
Functiontest_no_method_names_or_error_text_are_recorded
Method names and error text are user-authored and must not be sent. The flow name is recorded, as it already is for flow creation and executi
lib/crewai/tests/telemetry/test_flow_telemetry.py:349
Methodtest_no_null_unchanged
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:956
Functiontest_no_open_is_kept_by_the_app_that_runs_the_crew_first
With nothing traced the run app evaluates on its own screen, in this process or a child: both are told not to open the report.
lib/cli/tests/experimental/test_eval_crew.py:195
Functiontest_no_open_prints_the_link_and_hands_nothing_to_a_browser
`--no-open` (#7728): over SSH or in CI the link is printed for somebody to copy, and the verdict and exit code are what they always were.
lib/cli/tests/experimental/test_eval_crew.py:179
Methodtest_no_optimize_if_under_target
Test that small images are returned unchanged.
lib/crewai-files/tests/processing/test_transformers.py:136
Functiontest_no_optional_dependencies_in_init
Test that crewai-tools can be imported without optional dependencies. The package defines optional dependencies in pyproject.toml, but the b
lib/crewai-tools/tests/test_optional_dependencies.py:35
Methodtest_no_options_shows_help
(self, capsys: pytest.CaptureFixture[str])
lib/crewai/tests/test_checkpoint_cli.py:426
Functiontest_no_other_stop_carries_an_error_class
The `usage` fixture fails any other stop sent with attributes.
lib/cli/tests/test_run_usage.py:758
Functiontest_no_picker_defaults_to_a_preview_model
A preview can be pulled at short notice, so it is labeled and listed last.
lib/cli/tests/test_constants.py:423
Functiontest_no_project_where_crewai_run_was_typed
(project, usage)
lib/cli/tests/test_run_usage.py:256
Methodtest_no_properties_key
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:686
Methodtest_no_provider_attr_falls_back_to_bare_model
Test that objects without to_config_dict fall back to model string.
lib/crewai/tests/test_async_human_feedback.py:1309
Methodtest_no_refs_unchanged
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:798
Methodtest_no_resize_if_within_bounds
Test that small images are returned unchanged.
lib/crewai-files/tests/processing/test_transformers.py:59
Methodtest_no_resource_dirs
(self, tmp_path: Path)
lib/crewai/tests/skills/test_parser.py:167
Methodtest_no_retry_on_4xx
Does NOT retry on 422 — client error is not transient.
lib/crewai/tests/tracing/test_tracing.py:1062
Methodtest_no_retry_on_exception
Exceptions (e.g. timeout, connection error) abort immediately without retry.
lib/crewai/tests/tracing/test_tracing.py:1036
Methodtest_no_root_with_inner
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:109
Functiontest_no_signal_handler_traceback_in_non_main_thread
Signal handler registration should be silently skipped in non-main threads. Regression test for https://github.com/crewAIInc/crewAI/issues/4289
lib/crewai/tests/telemetry/test_telemetry.py:218
Functiontest_no_temp_files_left_behind
(tmp_path)
lib/crewai/tests/telemetry/test_project_id.py:324
Methodtest_no_tool_uses
(self, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:89
Methodtest_no_tool_uses
(self, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:146
Methodtest_no_tools_available
(self, mock_task, mock_agent)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:16
Methodtest_no_tools_prompt_is_simple
Test that no-tools prompt is simple and direct.
lib/crewai/tests/utilities/test_prompts_no_thought_leakage.py:51
Methodtest_no_tools_uses_task_no_tools_slice
Test that agents without tools use task_no_tools slice instead of task.
lib/crewai/tests/utilities/test_prompts_no_thought_leakage.py:23
Functiontest_no_tools_uses_task_no_tools_slice_in_prompt_slot
()
lib/crewai/tests/utilities/test_prompts_custom_templates.py:41
← previousnext →16,001–16,100 of 19,482, ranked by callers