MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,264 in github.com/crewAIInc/crewAI

Methodtest_get_token_not_found
Test that missing token file returns None.
lib/cli/tests/test_token_manager.py:124
Methodtest_get_token_not_found
Test that missing token file returns None.
lib/crewai/tests/cli/test_token_manager.py:120
Methodtest_get_token_url
(self)
lib/cli/tests/authentication/providers/test_auth0.py:42
Methodtest_get_token_url
(self)
lib/cli/tests/authentication/providers/test_keycloak.py:48
Methodtest_get_token_url
(self)
lib/cli/tests/authentication/providers/test_okta.py:71
Methodtest_get_token_url
(self)
lib/cli/tests/authentication/providers/test_entra_id.py:45
Methodtest_get_token_url
(self)
lib/cli/tests/authentication/providers/test_workos.py:41
Methodtest_get_token_url
(self)
lib/crewai/tests/cli/authentication/providers/test_auth0.py:42
Methodtest_get_token_url
(self)
lib/crewai/tests/cli/authentication/providers/test_keycloak.py:48
Methodtest_get_token_url
(self)
lib/crewai/tests/cli/authentication/providers/test_okta.py:71
Methodtest_get_token_url
(self)
lib/crewai/tests/cli/authentication/providers/test_entra_id.py:45
Methodtest_get_token_url
(self)
lib/crewai/tests/cli/authentication/providers/test_workos.py:41
Methodtest_get_token_url_when_using_org_auth_server
(self)
lib/cli/tests/authentication/providers/test_okta.py:101
Methodtest_get_token_url_when_using_org_auth_server
(self)
lib/crewai/tests/cli/authentication/providers/test_okta.py:101
Methodtest_get_token_url_with_custom_authorization_server_name
(self)
lib/cli/tests/authentication/providers/test_okta.py:86
Methodtest_get_token_url_with_custom_authorization_server_name
(self)
lib/crewai/tests/cli/authentication/providers/test_okta.py:86
Methodtest_get_token_url_with_different_domain
(self)
lib/cli/tests/authentication/providers/test_auth0.py:46
Methodtest_get_token_url_with_different_domain
(self)
lib/cli/tests/authentication/providers/test_keycloak.py:52
Methodtest_get_token_url_with_different_domain
(self)
lib/cli/tests/authentication/providers/test_okta.py:75
Methodtest_get_token_url_with_different_domain
(self)
lib/cli/tests/authentication/providers/test_entra_id.py:49
Methodtest_get_token_url_with_different_domain
(self)
lib/cli/tests/authentication/providers/test_workos.py:45
Methodtest_get_token_url_with_different_domain
(self)
lib/crewai/tests/cli/authentication/providers/test_auth0.py:46
Methodtest_get_token_url_with_different_domain
(self)
lib/crewai/tests/cli/authentication/providers/test_keycloak.py:52
Methodtest_get_token_url_with_different_domain
(self)
lib/crewai/tests/cli/authentication/providers/test_okta.py:75
Methodtest_get_token_url_with_different_domain
(self)
lib/crewai/tests/cli/authentication/providers/test_entra_id.py:49
Methodtest_get_token_url_with_different_domain
(self)
lib/crewai/tests/cli/authentication/providers/test_workos.py:45
Methodtest_get_token_valid
Test getting a valid non-expired token.
lib/cli/tests/test_token_manager.py:94
Methodtest_get_token_valid
Test getting a valid non-expired token.
lib/crewai/tests/cli/test_token_manager.py:90
Methodtest_get_tool
(self, mock_make_request)
lib/cli/tests/test_plus_api.py:190
Methodtest_get_tool
(self, mock_make_request)
lib/crewai/tests/cli/test_plus_api.py:88
Methodtest_get_tool_with_org_uuid
(self, mock_client_class, mock_settings_class)
lib/cli/tests/test_plus_api.py:202
Methodtest_get_tool_with_org_uuid
(self, mock_client_class, mock_settings_class)
lib/crewai/tests/cli/test_plus_api.py:100
Methodtest_get_unknown_provider
Test unknown provider returns None.
lib/crewai-files/tests/processing/test_constraints.py:220
Functiontest_get_uploader_raises_for_bedrock_with_falsy_bucket_name
(monkeypatch)
lib/crewai-files/tests/test_factory.py:32
Functiontest_get_uploader_raises_for_unconfigured_bedrock
(monkeypatch)
lib/crewai-files/tests/test_factory.py:24
Functiontest_get_uploader_raises_for_unknown_provider
()
lib/crewai-files/tests/test_factory.py:15
Functiontest_get_uploader_returns_uploader_for_configured_provider
()
lib/crewai-files/tests/test_factory.py:8
Methodtest_get_uploader_wraps_lookup_failure_as_configuration_error
Bedrock with no bucket configured raises UploaderConfigurationError, not a raw ValueError.
lib/crewai-files/tests/test_resolver.py:198
Methodtest_get_video_duration_corrupt_file
Test handling of corrupt video data.
lib/crewai-files/tests/processing/test_validators.py:558
Methodtest_get_video_duration_real_file
Test duration detection with real video file.
lib/crewai-files/tests/processing/test_validators.py:584
Methodtest_get_video_duration_real_file_no_format_hint
Test duration detection without format hint.
lib/crewai-files/tests/processing/test_validators.py:596
Methodtest_get_with_provider_constraints_object
Test passing ProviderConstraints object returns it unchanged.
lib/crewai-files/tests/processing/test_constraints.py:214
Methodtest_getitem_invalid_key
Test __getitem__ with invalid key raises KeyError.
lib/crewai/tests/utilities/test_files.py:269
Methodtest_getitem_valid_key
Test __getitem__ with valid key.
lib/crewai/tests/utilities/test_files.py:260
Methodtest_getitem_with_tool_name_as_int
(self)
lib/crewai-tools/tests/tools/tool_collection_test.py:166
Methodtest_github_com_url
(self)
lib/crewai-tools/tests/rag/test_data_types.py:15
Methodtest_github_in_path_is_not_github
(self)
lib/crewai-tools/tests/rag/test_data_types.py:34
Functiontest_github_issue_3149_reproduction
Test that reproduces the exact issue from GitHub issue #3149.
lib/crewai/tests/test_task.py:1423
Functiontest_github_loader_preserves_repository_source
(content_types: list[str])
lib/crewai-tools/tests/rag/test_github_loader.py:10
Functiontest_github_search_tool
(mock_adapter)
lib/crewai-tools/tests/tools/test_search_tools.py:291
Methodtest_github_subdomain_url
(self)
lib/crewai-tools/tests/rag/test_data_types.py:21
Methodtest_given_the_functions_it_still_runs_them
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:740
Functiontest_goal_achieved_event_collapses_remaining_steps_done
()
lib/cli/tests/test_crew_run_tui.py:1934
Methodtest_google_alias_in_provider_paths
Verify 'google' is registered as an alias for google-generativeai.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:26
Functiontest_google_async_streaming_returns_usage_metrics
Test that Google Gemini async streaming calls return proper token usage metrics.
lib/crewai/tests/llms/google/test_google_async.py:118
Functiontest_google_config_forwards_locale
`locale` is a documented Google Search parameter; the config model used to omit it, so it was silently dropped.
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:349
Functiontest_google_express_mode_works
Test Google Vertex AI Express mode with API key authentication. This tests Vertex AI Express mode (aiplatform.googleapis.com) with API key
lib/crewai/tests/llms/google/test_google.py:980
Methodtest_google_generativeai_provider_accepts_model_key
Test Google Generative AI provider accepts 'model' as alias.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:103
Methodtest_google_provider_accepts_lowercase_task_type
Test Google provider accepts lowercase task_type.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:175
Methodtest_google_provider_accepts_uppercase_task_type
Test Google provider accepts uppercase task_type.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:183
Methodtest_google_provider_default_task_type
Test Google provider has correct default task_type.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:191
Functiontest_google_streaming_returns_usage_metrics
Test that Google Gemini streaming calls return proper token usage metrics.
lib/crewai/tests/llms/google/test_google.py:951
Methodtest_google_vertex_provider_accepts_model_key
Test Google Vertex AI provider accepts 'model' as alias.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:111
Functiontest_gpt56_does_not_override_gpt54_mini_window
A more specific model id must keep its own catalog window.
lib/crewai/tests/test_llm.py:379
Functiontest_gpt56_family_context_window_with_provider_prefix
LiteLLM keeps the provider prefix on self.model; lookup must still hit gpt-5.6.
lib/crewai/tests/test_llm.py:428
Functiontest_gpt56_family_uses_official_context_window
GPT-5.6 Sol, Terra, Luna, and the alias share the catalog window.
lib/crewai/tests/test_llm.py:373
Functiontest_gpt_4_1
(model)
lib/crewai/tests/test_llm.py:315
Functiontest_gpt_6_1_sol_agent_runs_its_tool
Recorded live: two refused chat calls, then the tool round trip on /v1/responses.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:783
Functiontest_gpt_6_1_sol_streaming_agent_runs_its_tool
Recorded live with stream=True: the streamed tool call reaches the agent.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:818
Functiontest_grade
(answer, expected)
lib/devtools/tests/test_agents_md_eval.py:73
Functiontest_graded_again_unchanged_it_points_at_what_it_saved_and_asks_nothing
The same evaluation, read again after its sitting closed: what was saved the first time is where the data is, and AMP is not asked a second time.
lib/cli/tests/experimental/test_eval_crew.py:4042
Functiontest_grant_preserves_optional_viewer_url_without_exposing_it_in_repr
( collector, credential )
lib/crewai/tests/telemetry/test_session_trace_export.py:424
Functiontest_grant_requires_https_except_local_development
(collector, url, allowed)
lib/crewai/tests/telemetry/test_session_trace_export.py:491
Methodtest_guard_does_not_fire_on_a_conversational_flow
(self)
lib/crewai/tests/test_flow_conversation.py:2398
Functiontest_guardrail
(output)
lib/crewai/tests/agents/test_lite_agent.py:587
Functiontest_guardrail_emits_events
(sample_agent)
lib/crewai/tests/test_task_guardrails.py:211
Functiontest_guardrail_error_in_context
Test that guardrail error is passed in context for retry.
lib/crewai/tests/test_task_guardrails.py:125
Functiontest_guardrail_is_called_using_callable
()
lib/crewai/tests/agents/test_lite_agent.py:416
Functiontest_guardrail_is_called_using_string
Test that a string guardrail triggers events and retries correctly. Uses a callable guardrail that deterministically fails on the first attem
lib/crewai/tests/agents/test_lite_agent.py:351
Functiontest_guardrail_reached_attempt_limit
()
lib/crewai/tests/agents/test_lite_agent.py:460
Methodtest_guardrail_retry_preserves_earlier_failures
A blocked attempt's failures must survive into the final output. The retry resets the agent's record, so without accumulation this would
lib/crewai/tests/tools/test_tool_failure.py:810
Methodtest_guardrail_retry_usage_includes_all_attempts
A guardrail retry re-invokes the LLM within the same kickoff, so the result must report the whole call's usage — every attempt — not j
lib/crewai/tests/agents/test_lite_agent.py:1287
Functiontest_guardrail_type_error
()
lib/crewai/tests/test_task.py:223
Functiontest_guardrail_when_an_error_occurs
(sample_agent, task_output)
lib/crewai/tests/test_task_guardrails.py:305
Functiontest_guardrails_vs_single_guardrail_mutual_exclusion
Test that guardrails list nullifies single guardrail.
lib/crewai/tests/test_task_guardrails.py:705
Functiontest_hallucination_guardrail_always_passes
Test that the guardrail always passes regardless of configuration in open-source version.
lib/crewai/tests/test_hallucination_guardrail.py:87
Functiontest_hallucination_guardrail_description
Test that the guardrail provides the correct description for event logging.
lib/crewai/tests/test_hallucination_guardrail.py:55
Functiontest_hallucination_guardrail_description_in_events
Test that HallucinationGuardrail description appears correctly in events.
lib/crewai/tests/test_task_guardrails.py:350
Functiontest_hallucination_guardrail_initialization
Test that the hallucination guardrail initializes correctly with all parameters.
lib/crewai/tests/test_hallucination_guardrail.py:9
Functiontest_hallucination_guardrail_integration
Test that HallucinationGuardrail integrates properly with the task system.
lib/crewai/tests/test_task_guardrails.py:326
Functiontest_hallucination_guardrail_no_op_behavior
Test that the guardrail always returns True in the open-source version.
lib/crewai/tests/test_hallucination_guardrail.py:33
Functiontest_handle_context_length_exceeds_limit
()
lib/crewai/tests/agents/test_agent.py:1405
Functiontest_handle_context_length_exceeds_limit_cli_no
()
lib/crewai/tests/agents/test_agent.py:1448
Methodtest_handle_crew_planning
(self, crew_planner)
lib/crewai/tests/utilities/test_planning_handler.py:54
Methodtest_handle_crew_planning_different_llm
(self, crew_planner_different_llm)
lib/crewai/tests/utilities/test_planning_handler.py:163
Methodtest_handle_empty_pop_raises_when_configured
(self)
lib/crewai/tests/events/test_event_context.py:85
Methodtest_handle_mismatch_raises_when_configured
(self)
lib/crewai/tests/events/test_event_context.py:77
Functiontest_handle_partial_json_accepts_literal_control_chars_in_strings
JSON values with literal newlines/tabs (lenient parsing) must still validate, matching the prior model_validate_json behavior.
lib/crewai/tests/utilities/test_converter.py:206
Functiontest_handle_partial_json_falls_through_for_non_json_curly_blocks
A regex match that is not actually JSON (e.g. GraphQL) must fall through to convert_with_instructions instead of raising a ValidationError.
lib/crewai/tests/utilities/test_converter.py:217
Functiontest_handle_partial_json_with_invalid_partial
(mock_agent: Mock)
lib/crewai/tests/utilities/test_converter.py:198
← previousnext →14,301–14,400 of 19,264, ranked by callers