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
Function
test_responses_api_result_has_tool_outputs
Test ResponsesAPIResult.has_tool_outputs() method.
lib/crewai/tests/llms/openai/test_openai.py:1443
Method
test_responses_base_url_from_base_endpoint
(self, mock_openai_completion)
lib/crewai/tests/llms/azure/test_azure_responses.py:113
Method
test_responses_base_url_preserves_port
(self, mock_openai_completion)
lib/crewai/tests/llms/azure/test_azure_responses.py:134
Method
test_responses_base_url_strips_deployment_path
Endpoint with /openai/deployments/... should still produce correct base_url.
lib/crewai/tests/llms/azure/test_azure_responses.py:123
Method
test_restore_does_not_instantiate_abstract_base_llm
(self)
lib/crewai/tests/test_checkpoint.py:840
Method
test_restore_from_default_none
(self)
lib/crewai/tests/test_checkpoint.py:209
Method
test_restore_from_field
(self)
lib/crewai/tests/test_checkpoint.py:205
Function
test_restore_from_state_id_none_is_no_op
restore_from_state_id=None (default) preserves baseline kickoff behavior.
lib/crewai/tests/test_flow_persistence.py:392
Function
test_restore_from_state_id_not_found_silent_fallback
Lookup miss on restore_from_state_id silently falls through to default behavior.
lib/crewai/tests/test_flow_persistence.py:371
Method
test_restore_keeps_original_expected_output
(self)
lib/crewai/tests/test_checkpoint.py:863
Method
test_restore_legacy_outputs_evaluates_expressions
(self)
lib/crewai/tests/test_checkpoint.py:683
Method
test_restore_wraps_legacy_plain_value_outputs
(self)
lib/crewai/tests/test_checkpoint.py:671
Function
test_restoring_the_machine_transport_undoes_what_a_project_env_set
( machine: dict[str, str], )
lib/crewai-core/tests/test_plus_api_proxy.py:286
Method
test_result_as_answer_false_on_tool_error
When a tool with result_as_answer=True raises, result_as_answer must be False. Regression test for https://github.com/crewAIInc/crewAI/issues
lib/crewai/tests/utilities/test_agent_utils.py:1053
Method
test_result_as_answer_false_when_hook_blocks
When a before-hook blocks a tool with result_as_answer=True, result_as_answer must be False.
lib/crewai/tests/utilities/test_agent_utils.py:1092
Function
test_result_as_answer_in_tool_decorator
()
lib/crewai/tests/tools/test_base_tool.py:121
Function
test_result_as_answer_tool_output_is_not_requested_again
()
lib/crewai/tests/agents/test_executor_structured_output_with_tools.py:359
Method
test_result_before_iteration_raises_error
Test that accessing result before iteration raises error.
lib/crewai/tests/test_streaming.py:110
Method
test_result_before_iteration_raises_error
Test that accessing result before iteration raises error.
lib/crewai/tests/test_streaming.py:160
Method
test_result_creation
Test HumanFeedbackResult can be created with all fields.
lib/crewai/tests/test_human_feedback_decorator.py:191
Function
test_result_is_always_a_known_literal
PII guarantee: the return value can only ever be a known literal. Every marker is set to a value that would be catastrophic to emit, and the
lib/crewai/tests/telemetry/test_coding_agent_detection.py:375
Function
test_result_is_cached
(monkeypatch)
lib/cli/tests/test_model_catalog.py:422
Method
test_result_schema_behavior_carries_over_to_structured_tool
(self)
lib/crewai/tests/tools/test_base_tool.py:588
Method
test_result_stays_inline_when_better_compaction_is_disabled
(self)
lib/crewai/tests/agents/test_agent_executor.py:2555
Method
test_result_stays_inline_when_deferral_is_unavailable
(self, overflow_result)
lib/crewai/tests/agents/test_agent_executor.py:2532
Method
test_result_with_metadata
Test HumanFeedbackResult with custom metadata.
lib/crewai/tests/test_human_feedback_decorator.py:207
Function
test_result_without_content_is_reported
A result object missing `content` entirely must not raise AttributeError.
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:365
Method
test_results_stop_at_twelve_thousand_characters
(self)
lib/crewai-files/tests/spreadsheets/test_answers.py:274
Method
test_resume_aggregates_under_foreign_flow_context
Resume must override an already-set ``current_flow_id`` so its own LLM events match the listener's filter even when invoked from insid
lib/crewai/tests/test_flow_usage_metrics.py:469
Method
test_resume_async_direct
Test resume_async() can be called directly in async context.
lib/crewai/tests/test_async_human_feedback.py:616
Method
test_resume_async_stores_lessons
(self)
lib/crewai/tests/test_async_human_feedback.py:1527
Method
test_resume_basic
Test basic resume functionality.
lib/crewai/tests/test_async_human_feedback.py:654
Method
test_resume_builds_llm_from_serialized_context
( self, mock_emit: MagicMock )
lib/crewai/tests/test_async_human_feedback.py:1420
Function
test_resume_emits_failed_event_paired_with_resume_started_event
(tmp_path)
lib/crewai/tests/utilities/test_events.py:783
Function
test_resume_failing_before_method_finishes_keeps_flow_pairing
(tmp_path)
lib/crewai/tests/utilities/test_events.py:889
Function
test_resume_freezes_fresh_cel_now
()
lib/crewai/tests/test_flow_from_definition.py:4041
Method
test_resume_from_async_context_raises_error
Test that resume() raises RuntimeError when called from async context.
lib/crewai/tests/test_async_human_feedback.py:580
Method
test_resume_is_safe
Test resume method exists and doesn't error.
lib/crewai/tests/utilities/test_console_formatter_pause_resume.py:57
Function
test_resume_pairs_resumed_method_events_with_their_own_scope
(tmp_path)
lib/crewai/tests/utilities/test_events.py:832
Method
test_resume_records_method_output_before_downstream_listeners
Downstream listeners can read outputs from the resumed method.
lib/crewai/tests/test_async_human_feedback.py:829
Method
test_resume_replays_completed_and_executes_pending
(self, tmp_path)
lib/crewai/tests/events/test_event_replay.py:123
Method
test_resume_routes_on_the_reply_and_stores_lessons
(self)
lib/crewai/tests/test_async_human_feedback.py:1548
Method
test_resume_routing
Test resume with routing.
lib/crewai/tests/test_async_human_feedback.py:733
Method
test_resume_stores_lessons_distilled_from_the_reply
(self)
lib/crewai/tests/test_async_human_feedback.py:1504
Method
test_resume_stores_lessons_under_the_configured_source
(self)
lib/crewai/tests/test_async_human_feedback.py:1584
Function
test_resume_synthetic_completion_persists
()
lib/crewai/tests/test_flow_from_definition.py:4009
Method
test_resume_with_empty_reply_stores_nothing
(self)
lib/crewai/tests/test_async_human_feedback.py:1606
Method
test_resume_without_feedback_uses_default
Test that resume() can be called without feedback argument.
lib/crewai/tests/test_async_human_feedback.py:1378
Method
test_resume_without_learn_leaves_memory_untouched
(self)
lib/crewai/tests/test_async_human_feedback.py:1622
Method
test_resume_without_pending_raises_error
Test that resume raises error without pending context.
lib/crewai/tests/test_async_human_feedback.py:567
Function
test_resumed_flow_is_reported
A restored run is only visible here - there is no resume event. Without it, a paused flow that was abandoned cannot be told apart from one th
lib/crewai/tests/telemetry/test_flow_telemetry.py:540
Function
test_resumed_is_recorded_as_a_string
A boolean is encoded as the presence of a key, not as a value. ``false`` arrives as the key simply being absent, which is invisible in the sc
lib/crewai/tests/telemetry/test_telemetry.py:479
Method
test_resumed_pydantic_output_arrives_as_a_dict
(self, mock_emit: MagicMock)
lib/crewai/tests/test_async_human_feedback.py:1739
Method
test_retries_on_5xx_then_succeeds
Retries on 500 server error, succeeds on second attempt.
lib/crewai/tests/tracing/test_tracing.py:1004
Method
test_retries_on_none_response_then_succeeds
Retries when API returns None, succeeds on second attempt.
lib/crewai/tests/tracing/test_tracing.py:972
Method
test_retries_on_responses_and_remembers_the_model
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_responses_only_models.py:82
Method
test_retries_on_the_async_path
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:275
Method
test_retries_on_the_async_streaming_path
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:308
Method
test_retries_on_the_streaming_path
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:291
Method
test_retries_with_none_and_succeeds
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:226
Method
test_retries_without_the_key_and_succeeds
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:257
Function
test_retrieve
()
lib/crewai/tests/utilities/test_i18n.py:23
Function
test_retrieve_not_found
()
lib/crewai/tests/utilities/test_i18n.py:29
Method
test_retry_after_a_failed_completion_offers_the_lessons_again
(self)
lib/crewai/tests/test_async_human_feedback.py:1694
Function
test_retry_after_reads_seconds_or_a_date_and_anything_else_waits_a_minute
(header, wait)
lib/cli/tests/experimental/test_eval_crew.py:774
Function
test_retry_after_waits_until_a_date_still_ahead
()
lib/cli/tests/experimental/test_eval_crew.py:779
Function
test_retry_is_admitted_by_the_rpm_limiter
( replies: tuple[Any, ...], admitted: int, use_async: bool )
lib/crewai/tests/agents/test_empty_llm_response_retry.py:179
Method
test_retry_limit_does_not_swallow_the_abort
A deliberate stop must not be retried as a transient error.
lib/crewai/tests/tools/test_tool_failure.py:689
Function
test_retry_uses_exponential_backoff_when_no_retry_after
Without Retry-After, backoff is 2^attempt (1s, 2s, ...).
lib/crewai-tools/tests/tools/brave_search_tool_test.py:754
Method
test_return_value_replaces_payload
(self)
lib/crewai/tests/hooks/test_dispatch.py:60
Method
test_returns_agent_card
to_agent_card should return an AgentCard instance.
lib/crewai/tests/a2a/utils/test_agent_card.py:81
Method
test_returns_all_records_newest_first
(self, storage: StorageBackend)
lib/crewai/tests/memory/test_storage_backend_contract.py:178
Method
test_returns_all_tools_without_hash
(self, mock_schemas, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:523
Method
test_returns_body_content_type_and_final_url
The helper reports the body alongside where it ended up.
lib/crewai-tools/tests/url_read_tool_test.py:818
Method
test_returns_empty_for_nonexistent_tool
(self, mock_schemas, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:540
Method
test_returns_empty_on_http_error
(self, mock_get_token, mock_plus_api_class, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:155
Method
test_returns_empty_on_network_error
(self, mock_get_token, mock_plus_api_class, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:168
Method
test_returns_empty_when_no_token
(self, mock_get_token, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:180
Method
test_returns_false_for_missing_file
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:266
Method
test_returns_false_on_fetch_failure
Test that fetch failure returns not yanked.
lib/cli/tests/test_version.py:390
Method
test_returns_false_on_fetch_failure
Test that fetch failure returns not yanked.
lib/crewai/tests/cli/test_version.py:354
Method
test_returns_false_when_already_current
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:235
Method
test_returns_false_when_no_matching_event
(self)
lib/crewai/tests/events/test_event_context.py:223
Method
test_returns_false_when_no_project_section
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:247
Method
test_returns_false_when_no_runtime_state
(self)
lib/crewai/tests/events/test_event_context.py:212
Method
test_returns_false_when_version_is_dynamic
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:253
Function
test_returns_float32_vectors_in_input_order
(openai_mock)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:34
Method
test_returns_highest_non_yanked
Test that the highest non-yanked version is returned.
lib/cli/tests/test_version.py:192
Method
test_returns_highest_non_yanked
Test that the highest non-yanked version is returned.
lib/crewai/tests/cli/test_version.py:156
Method
test_returns_none_for_invalid_pdf
Test that None is returned for invalid PDF data.
lib/crewai-files/tests/processing/test_transformers.py:358
Method
test_returns_none_when_absent
Nothing left to drop -- the retry must not loop.
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:251
Method
test_returns_none_when_all_yanked
Test that None is returned when all versions are yanked.
lib/cli/tests/test_version.py:201
Method
test_returns_none_when_all_yanked
Test that None is returned when all versions are yanked.
lib/crewai/tests/cli/test_version.py:165
Method
test_returns_none_when_already_none
Nothing left to try -- the retry must not loop.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:218
Method
test_returns_none_when_no_current_task
Cancel returns None when context has no current_task.
lib/crewai/tests/a2a/utils/test_task.py:298
Function
test_returns_none_when_no_id_configured
(pyproject)
lib/crewai/tests/telemetry/test_project_id.py:36
Method
test_returns_none_without_pillow
Test that None is returned when Pillow is not installed.
lib/crewai-files/tests/processing/test_transformers.py:326
Method
test_returns_relative_path_inside_base
(self, tmp_path)
lib/crewai-tools/tests/utilities/test_safe_path.py:88
Method
test_returns_results_as_json
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:397
Method
test_returns_updated_task_when_current_task_exists
Cancel returns updated task when context has current_task.
lib/crewai/tests/a2a/utils/test_task.py:311
← previous
next →
17,501–17,600 of 19,663, ranked by callers