Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,482 in github.com/crewAIInc/crewAI
⨍
Functions
19,482
◇
Types & classes
3,433
↳
Endpoints
991
Method
test_before_hook_can_block_execution
Test that before hooks can block tool execution.
lib/crewai/tests/hooks/test_tool_hooks.py:158
Method
test_before_hook_can_modify_input
Test that before hooks can modify tool input in-place.
lib/crewai/tests/hooks/test_tool_hooks.py:190
Method
test_before_hook_can_modify_messages
Test that before hooks can modify messages in-place.
lib/crewai/tests/hooks/test_llm_hooks.py:120
Function
test_before_kickoff_callback
()
lib/crewai/tests/test_crew.py:4791
Function
test_before_kickoff_modification
()
lib/crewai/tests/test_project.py:275
Function
test_before_kickoff_with_none_input
()
lib/crewai/tests/test_project.py:294
Function
test_before_kickoff_without_inputs
()
lib/crewai/tests/test_crew.py:4844
Method
test_before_llm_call_decorator_registers_hook
Test that @before_llm_call decorator registers the hook.
lib/crewai/tests/hooks/test_decorators.py:52
Method
test_before_llm_call_sets_attribute
Test that decorator sets is_before_llm_call_hook attribute.
lib/crewai/tests/hooks/test_decorators.py:286
Method
test_before_llm_call_with_agent_filter
Test that agent filter works correctly.
lib/crewai/tests/hooks/test_decorators.py:96
Method
test_before_tool_call_decorator_registers_hook
Test that @before_tool_call decorator registers the hook.
lib/crewai/tests/hooks/test_decorators.py:131
Method
test_before_tool_call_sets_attributes_with_filters
Test that decorator with filters sets filter attributes.
lib/crewai/tests/hooks/test_decorators.py:296
Method
test_before_tool_call_tool_filter_sanitizes_names
Tool filter should auto-sanitize names so users can pass BaseTool.name directly.
lib/crewai/tests/hooks/test_decorators.py:183
Method
test_before_tool_call_with_combined_filters
Test that combined tool and agent filters work.
lib/crewai/tests/hooks/test_decorators.py:215
Method
test_before_tool_call_with_tool_filter
Test that tool filter works correctly.
lib/crewai/tests/hooks/test_decorators.py:151
Function
test_begin_creates_when_empty
()
lib/crewai/tests/test_execution_uuid.py:24
Function
test_begin_does_not_overwrite_existing
()
lib/crewai/tests/test_execution_uuid.py:36
Function
test_binary_content_type_is_rejected
An unsupported type is refused rather than returned as base64.
lib/crewai-tools/tests/url_read_tool_test.py:254
Function
test_blank_existing_id_is_replaced_not_duplicated
A blank id reads as absent; appending would make a duplicate key.
lib/crewai/tests/telemetry/test_project_id.py:192
Method
test_blank_filter_by_raises
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:124
Function
test_blank_or_whitespace_id_is_treated_as_absent
Whitespace is truthy in Python but is not an identity. Accepting it would propagate a useless value into login payloads and tracing context.
lib/crewai/tests/telemetry/test_project_id.py:169
Function
test_blank_query_is_rejected
Verify whitespace-only queries never reach the database.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:255
Method
test_blocked_attempt_failures_survive_the_retry
The retry opens its own collector, so earlier records must be merged.
lib/crewai/tests/tools/test_tool_failure.py:1582
Method
test_blocked_call_reports_no_failure
(self)
lib/crewai/tests/tools/test_tool_failure.py:1056
Function
test_blocked_hook_does_not_return_a_cached_result
(backend)
lib/crewai/tests/agents/test_native_tool_hook_contract.py:166
Method
test_blocks_127_0_0_1
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:150
Function
test_blocks_absolute_path_in_filename
(tool, temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:193
Method
test_blocks_cloud_metadata
AWS/GCP/Azure metadata endpoint must be blocked.
lib/crewai-tools/tests/utilities/test_safe_path.py:154
Function
test_blocks_directory_outside_working_directory
An absolute 'directory' must not escape the working directory.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:230
Function
test_blocks_directory_traversal_outside_working_directory
..' in the directory must not escape the working directory either.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:252
Method
test_blocks_empty_hostname
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:273
Method
test_blocks_file_scheme
file:// URLs must be blocked.
lib/crewai-tools/tests/utilities/test_safe_path.py:136
Method
test_blocks_file_scheme_with_host
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:141
Method
test_blocks_file_url_in_positional_arg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:37
Method
test_blocks_file_url_via_github_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:67
Method
test_blocks_file_url_via_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:55
Method
test_blocks_file_url_via_youtube_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:71
Method
test_blocks_ftp_scheme
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:269
Function
test_blocks_hardlink_escaping_destination
A hardlink whose target escapes dest is rejected.
lib/cli/tests/skills/test_safe_extract.py:69
Function
test_blocks_hardlink_to_dangling_symlink
tarfile re-creates a hardlink to a missing symlink member as that symlink, re-anchored at the hardlink's path; the fallback must not get that far.
lib/cli/tests/skills/test_safe_extract.py:146
Method
test_blocks_ipv6_localhost
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:265
Method
test_blocks_localhost
localhost must be blocked (resolves to 127.0.0.1).
lib/crewai-tools/tests/utilities/test_safe_path.py:145
Function
test_blocks_member_name_outside_destination
(tmp_path: Path, name: str)
lib/cli/tests/skills/test_safe_extract.py:174
Function
test_blocks_member_written_through_inside_symlink
A dest-relative symlink followed by a `..` member must not escape dest.
lib/cli/tests/skills/test_safe_extract.py:124
Method
test_blocks_non_public_addresses
(self, ip)
lib/crewai-tools/tests/utilities/test_safe_path.py:331
Method
test_blocks_private_10_range
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:159
Method
test_blocks_private_172_range
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:253
Method
test_blocks_private_192_range
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:257
Method
test_blocks_private_ip_via_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:59
Method
test_blocks_private_ip_via_website_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:63
Function
test_blocks_relative_symlink_escaping_destination
A relative symlink (../..) that escapes dest is also rejected.
lib/cli/tests/skills/test_safe_extract.py:53
Function
test_blocks_special_tar_member
Special tar members such as FIFOs are rejected.
lib/cli/tests/skills/test_safe_extract.py:85
Function
test_blocks_symlink_escape
(tool, temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:211
Function
test_blocks_symlink_escaping_destination
A symlink whose target escapes dest, plus a file written through it, must be rejected before anything is extracted.
lib/cli/tests/skills/test_safe_extract.py:28
Function
test_blocks_third_party_tool_type_without_opt_in
(tool_type: str)
lib/crewai/tests/tools/test_deserialization_guard.py:43
Function
test_blocks_traversal_in_filename
(tool, temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:176
Method
test_blocks_traversal_in_positional_arg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:33
Method
test_blocks_traversal_via_directory_path_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:51
Method
test_blocks_traversal_via_file_path_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:47
Method
test_blocks_traversal_via_path_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:43
Method
test_blocks_unparseable_input
(self, ip)
lib/crewai-tools/tests/utilities/test_safe_path.py:352
Method
test_blocks_unresolvable_host
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:277
Method
test_blocks_zero_address
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:261
Function
test_bom_and_whitespace_do_not_hide_the_html_prefix
A BOM or leading whitespace must not demote HTML to raw text.
lib/crewai-tools/tests/url_read_tool_test.py:449
Method
test_boolean_field
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:65
Function
test_both_listing_failures_still_analyze
(tmp_path: Path)
lib/crewai/tests/memory/test_encoding_flow_analyze_fallback.py:62
Method
test_both_llm_calls_fail_raises
When both structured and simple prompting fail, raise instead of emit[0].
lib/crewai/tests/test_human_feedback_decorator.py:515
Method
test_both_none
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:112
Method
test_both_shapes_carry_identical_keys
The dict shape has exactly the UsageMetrics fields on both types.
lib/crewai/tests/test_usage_shape_parity.py:84
Method
test_both_update_and_yanked_warning_show
Test both update and yanked panels show when applicable.
lib/crewai/tests/cli/test_version.py:495
Method
test_bound_instance_method_returns_none
(self)
lib/crewai/tests/test_callback.py:88
Method
test_bound_method_callback_is_dropped_and_restore_completes
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, kickoff: str, )
lib/crewai/tests/test_checkpoint.py:990
Method
test_bound_method_warns_it_is_dropped
(self)
lib/crewai/tests/test_callback.py:169
Method
test_boundary_id_rewrite_redirects_state_identity
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:646
Method
test_branch_traversal_rejected
(self)
lib/crewai/tests/test_checkpoint.py:461
Function
test_bridge_preserves_multimodal_and_null_content
(monkeypatch)
lib/crewai/tests/agents/test_conversation.py:278
Method
test_broken_telemetry_does_not_break_finalization
Telemetry is best-effort: a failing exporter must not fail the batch.
lib/crewai/tests/tracing/test_tracing.py:1724
Function
test_buffer_drops_single_span_larger_than_its_byte_limit
(monkeypatch)
lib/crewai/tests/telemetry/test_session_trace_export.py:828
Function
test_buffer_evicts_oldest_spans_and_obeys_encoded_bytes
(monkeypatch)
lib/crewai/tests/telemetry/test_session_trace_export.py:809
Method
test_build_embedder_azure
Test building Azure embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:74
Method
test_build_embedder_cohere
Test building Cohere embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:163
Method
test_build_embedder_connects_with_connection_params
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:227
Method
test_build_embedder_custom_provider
Test building custom embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:264
Method
test_build_embedder_google_vertex_with_genai_model
Test routing to Google Vertex provider with new genai model.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:307
Method
test_build_embedder_google_vertex_with_legacy_model
Test routing to Google Vertex provider with legacy textembedding-gecko model.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:337
Method
test_build_embedder_google_vertex_with_location
Test routing to Google Vertex provider with location parameter.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:369
Method
test_build_embedder_huggingface
Test building HuggingFace embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:133
Method
test_build_embedder_import_error
Test error handling when provider import fails.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:254
Method
test_build_embedder_missing_provider
Test error handling for missing provider key.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:246
Method
test_build_embedder_ollama
Test building Ollama embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:108
Method
test_build_embedder_openai
Test building OpenAI embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:14
Function
test_build_embedder_openai_reads_prefixed_env
(openai_mock, monkeypatch)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:143
Function
test_build_embedder_openai_returns_native_function
(openai_mock)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:133
Method
test_build_embedder_openrouter
Test building OpenRouter embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:44
Method
test_build_embedder_oracle_routes_to_provider
(self, mock_import: MagicMock)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:104
Method
test_build_embedder_unknown_provider
Test error handling for unknown provider.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:239
Method
test_build_embedder_voyageai
Test building VoyageAI embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:188
Method
test_build_embedder_watsonx
Test building WatsonX embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:213
Method
test_build_embedder_with_empty_input_raises_without_db_call
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:312
Method
test_build_embedder_with_existing_connection_reuses_it
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:149
← previous
next →
11,701–11,800 of 19,482, ranked by callers