MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,663 in github.com/crewAIInc/crewAI

Methodtest_areset
Test that areset deletes all collections asynchronously.
lib/crewai/tests/rag/qdrant/test_client.py:737
Methodtest_areset
Test that areset calls the underlying client correctly.
lib/crewai/tests/rag/chromadb/test_client.py:627
Methodtest_areset_calls_client_delete
Test that areset calls delete_collection on the client.
lib/crewai/tests/knowledge/test_async_knowledge.py:59
Methodtest_areset_calls_storage_areset
Test that areset calls storage.areset.
lib/crewai/tests/knowledge/test_async_knowledge.py:132
Methodtest_areset_no_collections
Test that areset handles no collections gracefully.
lib/crewai/tests/rag/qdrant/test_client.py:772
Methodtest_areset_raises_when_storage_not_initialized
Test that areset raises ValueError when storage is None.
lib/crewai/tests/knowledge/test_async_knowledge.py:148
Methodtest_areset_wrong_client_type
Test that areset raises TypeError for sync client.
lib/crewai/tests/rag/qdrant/test_client.py:786
Methodtest_aresolve_files_skips_unrelated_per_file_errors
One file failing with an ordinary error is logged and skipped; the rest still resolve.
lib/crewai-files/tests/test_resolver.py:224
Methodtest_aresolve_files_surfaces_uploader_configuration_error
A provider whose uploader cannot be built aborts the whole batch, since it affects every file.
lib/crewai-files/tests/test_resolver.py:211
Methodtest_aresolve_url_source
Test async URL resolution for supported provider.
lib/crewai-files/tests/test_file_url.py:284
Methodtest_args_schema
Test that args_schema is properly defined.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:123
Methodtest_args_schema_is_db2_tool_schema
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:687
Methodtest_array_of_objects
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:246
Methodtest_array_of_strings
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:234
Functiontest_artifact_can_point_at_the_task_output_file
(store, tmp_path)
lib/crewai/tests/test_artifacts.py:561
Functiontest_artifact_created_becomes_a_span
(pipeline)
lib/crewai/tests/telemetry/test_artifact_span.py:59
Functiontest_artifact_created_is_forwarded_intact
(handled)
lib/crewai/tests/tracing/test_artifact_created_tracing.py:36
Functiontest_artifact_created_is_registered
(pipeline)
lib/crewai/tests/telemetry/test_artifact_span.py:74
Functiontest_artifact_true_unwraps_a_fenced_reply
(store, tmp_path)
lib/crewai/tests/test_artifacts.py:823
Functiontest_artifacts_flag_adds_tool
(crew_flag, agent_flag, expected)
lib/crewai/tests/test_artifacts.py:167
Methodtest_arun_does_not_increment_usage_on_validation_error
Usage count should NOT increment when arun validation fails.
lib/crewai/tests/tools/test_base_tool.py:677
Methodtest_arun_increments_usage_count
Test that arun increments the usage count.
lib/crewai/tests/tools/test_async_tools.py:67
Methodtest_arun_strips_extra_kwargs
Extra kwargs not in the schema should be stripped in arun.
lib/crewai/tests/tools/test_base_tool.py:670
Methodtest_arun_with_missing_required_kwarg_raises
Missing required kwargs should raise ValueError in arun.
lib/crewai/tests/tools/test_base_tool.py:656
Methodtest_arun_with_no_args_raises_validation_error
Calling arun() with no arguments should raise a clear ValueError (GH-4611).
lib/crewai/tests/tools/test_base_tool.py:649
Functiontest_arun_with_rate_limit_retry_retries_with_backoff
()
lib/crewai/tests/llms/test_retry.py:106
Methodtest_arun_with_valid_kwargs_passes_validation
Valid keyword arguments should pass schema validation in arun.
lib/crewai/tests/tools/test_base_tool.py:642
Methodtest_arun_with_wrong_field_name_raises
Kwargs not matching schema fields should trigger validation error in arun.
lib/crewai/tests/tools/test_base_tool.py:663
Methodtest_as_agent_message_includes_code
(self)
lib/crewai/tests/tools/test_tool_failure.py:140
Methodtest_as_agent_message_without_code
(self)
lib/crewai/tests/tools/test_tool_failure.py:144
Methodtest_as_paren_inside_string_does_not_bypass
AS (' inside a string literal must not be treated as a CTE body.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:576
Methodtest_as_paren_inside_string_read_only_ok
Read-only CTE with 'AS (' in a string should be allowed.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:584
Methodtest_asave_calls_client_methods
Test that asave calls the correct client methods.
lib/crewai/tests/knowledge/test_async_knowledge.py:42
Methodtest_asave_documents_calls_storage_asave
Test that _asave_documents calls storage.asave.
lib/crewai/tests/knowledge/test_async_knowledge.py:192
Methodtest_asave_documents_raises_without_storage
Test that _asave_documents raises ValueError when storage is None.
lib/crewai/tests/knowledge/test_async_knowledge.py:206
Methodtest_asave_persists_the_same_records_as_save
( self, storage_pair: tuple[StorageBackend, StorageBackend] )
lib/crewai/tests/memory/test_storage_backend_async_parity.py:137
Methodtest_ascending_with_a_filter
(self)
lib/crewai-files/tests/spreadsheets/test_answers.py:492
Methodtest_asearch
Test that asearch returns matching documents asynchronously.
lib/crewai/tests/rag/qdrant/test_client.py:518
Methodtest_asearch
Test that asearch queries the collection correctly.
lib/crewai/tests/rag/chromadb/test_client.py:518
Methodtest_asearch_collection_not_exists
Test that asearch raises error if collection doesn't exist.
lib/crewai/tests/rag/qdrant/test_client.py:584
Methodtest_asearch_empty_query_raises_error
Test that asearch handles empty query.
lib/crewai/tests/knowledge/test_async_knowledge.py:33
Functiontest_asearch_metadata_filter
( criteria: dict[str, Any], native_where: dict[str, Any] | None, expected: dict[str, Any] | None,
lib/crewai/tests/rag/chromadb/test_metadata_filter.py:81
Methodtest_asearch_returns_results
Test that asearch returns search results.
lib/crewai/tests/knowledge/test_async_knowledge.py:16
Methodtest_asearch_returns_the_same_matches_as_search
( self, storage_pair: tuple[StorageBackend, StorageBackend], search_kwargs: dict[str,
lib/crewai/tests/memory/test_storage_backend_async_parity.py:164
Methodtest_asearch_with_filters
Test that asearch applies metadata filters correctly.
lib/crewai/tests/rag/qdrant/test_client.py:556
Methodtest_asearch_with_optional_params
Test asearch with optional parameters.
lib/crewai/tests/rag/chromadb/test_client.py:557
Methodtest_asearch_wrong_client_type
Test that asearch raises TypeError for sync client.
lib/crewai/tests/rag/qdrant/test_client.py:598
Methodtest_ask_and_human_feedback_coexist
ask() and @human_feedback can be used in the same flow.
lib/crewai/tests/test_flow_ask.py:762
Methodtest_ask_checkpoints_state_before_waiting
State is saved to persistence before waiting for input.
lib/crewai/tests/test_flow_ask.py:498
Methodtest_ask_conditional
ask() called conditionally based on previous answer.
lib/crewai/tests/test_flow_ask.py:212
Methodtest_ask_defaults_to_console_provider
When no provider configured, ConsoleProvider is used.
lib/crewai/tests/test_flow_ask.py:354
Methodtest_ask_emits_input_received_event
FlowInputReceivedEvent is emitted after input is received.
lib/crewai/tests/test_flow_ask.py:432
Methodtest_ask_emits_input_requested_event
FlowInputRequestedEvent is emitted when ask() is called.
lib/crewai/tests/test_flow_ask.py:402
Methodtest_ask_in_async_method
ask() works inside an async flow method.
lib/crewai/tests/test_flow_ask.py:144
Methodtest_ask_in_async_method_returns_none_on_provider_error
ask() returns None if provider raises in an async method.
lib/crewai/tests/test_flow_ask.py:950
Methodtest_ask_in_async_method_with_listen_chain
ask() in an async start method, result flows to listener.
lib/crewai/tests/test_flow_ask.py:708
Methodtest_ask_in_listen_method
ask() works inside a @listen() method.
lib/crewai/tests/test_flow_ask.py:176
Methodtest_ask_in_start_method
ask() works inside a @start() method, flow completes normally.
lib/crewai/tests/test_flow_ask.py:158
Methodtest_ask_input_response_with_none_text
Provider returns InputResponse with text=None.
lib/crewai/tests/test_flow_ask.py:1116
Methodtest_ask_llm_for_field
(self)
lib/crewai/tests/utilities/test_training_converter.py:60
Methodtest_ask_loop_with_timeout_termination
while (msg := ask(...)) is not None pattern terminates on timeout.
lib/crewai/tests/test_flow_ask.py:281
Methodtest_ask_metadata_in_received_event
FlowInputReceivedEvent carries both metadata and response_metadata.
lib/crewai/tests/test_flow_ask.py:1080
Methodtest_ask_metadata_in_requested_event
FlowInputRequestedEvent carries metadata.
lib/crewai/tests/test_flow_ask.py:1052
Methodtest_ask_metadata_none_by_default
Provider receives None metadata when not provided.
lib/crewai/tests/test_flow_ask.py:989
Methodtest_ask_metadata_thread_safe
Concurrent ask() calls with different metadata don't cross-contaminate.
lib/crewai/tests/test_flow_ask.py:1140
Methodtest_ask_multiple_calls
Multiple ask() calls in one method return correct values in order.
lib/crewai/tests/test_flow_ask.py:195
Methodtest_ask_no_checkpoint_without_persistence
No error when persistence is not configured.
lib/crewai/tests/test_flow_ask.py:520
Methodtest_ask_no_timeout_waits_indefinitely
ask() with no timeout blocks until provider returns.
lib/crewai/tests/test_flow_ask.py:299
Methodtest_ask_passes_metadata_to_provider
Provider receives the metadata dict from ask().
lib/crewai/tests/test_flow_ask.py:974
Methodtest_ask_preserves_flow_lifecycle
Flow events (started, finished) still fire normally with ask().
lib/crewai/tests/test_flow_ask.py:787
Methodtest_ask_provider_returns_input_response
Provider returns InputResponse with response metadata.
lib/crewai/tests/test_flow_ask.py:1004
Methodtest_ask_provider_returns_string_with_metadata_sent
Provider returns plain string; history has metadata but no response_metadata.
lib/crewai/tests/test_flow_ask.py:1035
Functiontest_ask_question
()
lib/crewai/tests/tools/agent_tools/test_agent_tools.py:48
Functiontest_ask_question_to_wrong_agent
()
lib/crewai/tests/tools/agent_tools/test_agent_tools.py:116
Functiontest_ask_question_with_coworker_as_array
()
lib/crewai/tests/tools/agent_tools/test_agent_tools.py:90
Functiontest_ask_question_with_wrong_co_worker_variable
()
lib/crewai/tests/tools/agent_tools/test_agent_tools.py:62
Methodtest_ask_returns_empty_string_on_enter
Empty string means user pressed Enter (intentional empty input).
lib/crewai/tests/test_flow_ask.py:231
Methodtest_ask_returns_none_on_provider_error
ask() returns None if provider raises an exception.
lib/crewai/tests/test_flow_ask.py:932
Methodtest_ask_returns_user_input
ask() returns the string from the input provider.
lib/crewai/tests/test_flow_ask.py:130
Methodtest_ask_timeout_emits_received_with_none
FlowInputReceivedEvent has response=None on timeout.
lib/crewai/tests/test_flow_ask.py:463
Methodtest_ask_timeout_in_async_method
ask() timeout works inside an async flow method.
lib/crewai/tests/test_flow_ask.py:267
Methodtest_ask_timeout_returns_none
ask() returns None when timeout expires.
lib/crewai/tests/test_flow_ask.py:253
Methodtest_ask_uses_flow_level_provider
Per-flow input_provider is used when set.
lib/crewai/tests/test_flow_ask.py:319
Methodtest_ask_uses_global_config_provider
flow_config.input_provider is used as fallback.
lib/crewai/tests/test_flow_ask.py:334
Methodtest_ask_with_state_persistence_recovery
Ask checkpoints state so previously gathered values survive.
lib/crewai/tests/test_flow_ask.py:731
Methodtest_ask_with_structured_state
ask() works with Pydantic-based flow state.
lib/crewai/tests/test_flow_ask.py:685
Methodtest_ask_works_with_listen_chain
ask() in a start method, result flows to listener.
lib/crewai/tests/test_flow_ask.py:662
Functiontest_assert_safe_peer_allows_public
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:440
Functiontest_assert_safe_peer_blocks_metadata
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:435
Functiontest_assert_safe_peer_blocks_private
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:430
Functiontest_assert_safe_peer_force_safe_overrides_escape_hatch
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/utilities/test_safe_requests.py:449
Functiontest_assert_safe_peer_respects_escape_hatch
(monkeypatch: pytest.MonkeyPatch)
lib/crewai-tools/tests/utilities/test_safe_requests.py:444
Functiontest_assistant_and_runtime_are_reported_together
An assistant inside CI must not mask either signal.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:326
Functiontest_assistant_inside_cursor_agrees_across_both_paths
Cursor sets CURSOR_* in every terminal, including for other assistants.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:742
Methodtest_assistant_marker_is_ignored
Markers on assistant messages have no stable stamp target after Anthropic's role coalescing, so they should be silently ignored rather
lib/crewai/tests/llms/test_prompt_cache.py:120
Methodtest_assistant_text_alongside_tool_calls_is_preserved
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:125
Methodtest_assistant_tool_calls_become_function_call_items
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:96
Methodtest_astore_and_aget_files
Test async storing and retrieving crew files.
lib/crewai/tests/utilities/test_file_store.py:130
Functiontest_astream_cancellation_cleans_up_task
()
lib/crewai/tests/test_stream_frames.py:285
Functiontest_astream_scopes_concurrent_executions
()
lib/crewai/tests/test_stream_frames.py:221
← previousnext →11,301–11,400 of 19,663, ranked by callers