MCPcopy Create free account

hub / github.com/anthropics/anthropic-sdk-python / functions

Functions12,274 in github.com/anthropics/anthropic-sdk-python

Methodtest_unsupported_request_raises_by_default_and_keeps_previous_message_id
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:260
Functiontest_unsupported_type_asserts
()
tests/lib/_parse/test_transform.py:266
Functiontest_until_done_drives_runner_to_completion
`until_done()` (renamed from `run()` to match `BetaToolRunner` and avoid colliding with `EnvironmentWorker.run`'s forever-loop) drives the run
tests/lib/tools/test_session_runner.py:2162
Functiontest_until_done_returns_the_final_turn_after_a_compaction_without_a_summary_async
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:3116
Functiontest_until_done_returns_the_final_turn_after_a_compaction_without_a_summary_sync
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:3093
Methodtest_update_changes_the_fields_of_later_turns_without_a_request
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1188
Methodtest_update_replaces_each_request_option_it_is_given_as_a_whole
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1226
Methodtest_update_request_options_apply_to_later_turns
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1213
Methodtest_update_tools_replaces_the_runnable_tools
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:2234
Functiontest_upload_dotdot_component_is_refused
A `..` component is refused before resolution, so it cannot survive into the not-yet-existing tail and let a lexical containment check pass a path
tests/lib/tools/toolsets/test_security.py:79
Functiontest_upload_path_table
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:29
Functiontest_upload_refusals
(tmp_path: Path)
tests/lib/tools/toolsets/test_refusals.py:154
Functiontest_upload_root_that_does_not_exist_grants_nothing
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:282
Functiontest_upload_sibling_prefix_is_not_a_root_match
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:71
Functiontest_uploads_are_refused_without_a_file_policy_and_resolved_with_one
(tmp_path: Path)
tests/lib/tools/toolsets/test_enforcement.py:224
Methodtest_uppercases_method
Method should be uppercased for signing.
tests/lib/test_aws_auth.py:570
Methodtest_url_attributes_are_the_parts_of_the_url_that_the_request_goes_to
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3137
Methodtest_url_full_has_a_port_only_when_the_url_has_one
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:3161
Functiontest_url_policy_is_a_callable_or_unset
()
tests/lib/tools/toolsets/test_interface.py:189
Methodtest_url_query_has_each_parameter_that_the_method_declares
( self, call: DeclaredQueryCall, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3426
Methodtest_url_query_has_only_the_parameters_that_the_endpoint_defines
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3374
Methodtest_url_query_keeps_a_parameter_whose_name_has_brackets_of_its_own
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3401
Functiontest_url_refusals
()
tests/lib/tools/toolsets/test_refusals.py:92
Methodtest_us_region_base_url
Test that us region uses the correct base URL.
tests/lib/test_vertex.py:358
Methodtest_us_region_base_url
Test that us region uses the correct base URL.
tests/lib/test_vertex.py:879
Functiontest_usage_fields_are_all_recorded_or_left_out
( usage: type[pydantic.BaseModel], recorded: set[str], without_an_attribute: set[str] )
tests/test_open_telemetry.py:8327
Functiontest_usage_iteration_types_are_all_recorded_or_left_out
()
tests/test_open_telemetry.py:8338
Methodtest_usage_iterations_is_the_two_entry_server_shape
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:288
Methodtest_user_message
(self)
tests/lib/tools/test_mcp_tool.py:177
Methodtest_user_message_after_a_paused_reply_is_sent_alone_and_the_400_is_raised
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:344
Methodtest_user_oauth_malformed_expires_at_raises_anthropic_error
An ISO8601 string in `expires_at` must raise AnthropicError naming the expected shape.
tests/lib/test_credentials.py:4104
Methodtest_user_oauth_refresh_and_writeback
user_oauth with `credentials_path` runs the refresh-token grant on expiry and writes the new tokens back, exactly like a file-backed `
tests/lib/test_credentials.py:3249
Methodtest_user_oauth_requires_credentials_path
(self)
tests/lib/test_credentials.py:3244
Methodtest_user_oauth_with_client_id_missing_refresh_token
A user_oauth profile that has a client_id (refresh mode) but no refresh_token in the credentials file can't actually refresh — raise a
tests/lib/test_credentials.py:810
Methodtest_user_oauth_without_client_id_is_static
user_oauth without a client_id is the `external` pattern: the credentials file is externally rotated, the SDK re-reads it on every cal
tests/lib/test_credentials.py:769
Functiontest_user_profile_action_urls_are_rejected
(respx_mock: MockRouter)
tests/lib/test_aws.py:648
Methodtest_user_profile_id_header
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:135
Methodtest_user_profile_id_header
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:1563
Methodtest_user_profile_id_header
(self, sync: bool, respx_mock: MockRouter)
tests/lib/test_azure.py:391
Functiontest_user_profile_id_is_sent_in_the_header
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:975
Methodtest_user_profile_id_is_sent_in_the_header
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:225
Methodtest_user_profile_id_is_sent_in_the_header
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:745
Functiontest_user_profile_id_is_sent_in_the_header_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:1006
Functiontest_user_profiles_not_available
()
tests/lib/test_bedrock.py:968
Methodtest_user_profiles_not_available
(self)
tests/lib/test_vertex.py:266
Methodtest_user_profiles_not_available
(self)
tests/lib/test_vertex.py:787
Methodtest_user_profiles_not_available
(self)
tests/lib/test_bedrock_mantle.py:212
Methodtest_user_profiles_route
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:101
Methodtest_user_profiles_route
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:156
Methodtest_user_profiles_routes_need_no_workspace
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1563
Methodtest_user_profiles_routes_need_no_workspace
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1722
Methodtest_user_profiles_routes_use_organization_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1544
Methodtest_user_profiles_routes_use_organization_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1703
Functiontest_user_strings_are_not_iterated
(send: Send)
tests/test_prepare.py:329
Methodtest_uses_base_url_env_var
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:94
Methodtest_uses_bedrock_mantle_service_name
(self, get_auth_headers_recorder: GetAuthHeadersRecorder)
tests/lib/test_bedrock_mantle.py:117
Methodtest_uses_mantle_api_key_env_var
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:138
Methodtest_uses_service_name_parameter
service_name is passed through to SigV4Auth, not hardcoded.
tests/lib/test_aws_auth.py:438
Methodtest_validate_headers
(self)
tests/test_client.py:554
Methodtest_validate_headers
(self)
tests/test_client.py:1988
Methodtest_validate_path_returns_resolved_path_not_symlink_target
_validate_path must return the resolved path so that subsequent file operations hit the real location, not the (potentially swappable) symlink
tests/lib/tools/memory_tools/test_filesystem.py:1207
Functiontest_validate_type_tries_union_members_in_order
()
tests/test_models.py:1278
Methodtest_value_error_from_provider_propagates_cleanly
A `ValueError` (e.g. from a provider that parses a JWT) escapes but the cache state is clean — the next call succeeds without hanging.
tests/lib/test_credentials.py:4178
Methodtest_value_is_sent_as_given
( self, user_profile_id: str, client: AnthropicBedrockMantle, respx_mock: MockRouter )
tests/lib/test_bedrock_mantle.py:719
Functiontest_value_types_construct
()
tests/lib/tools/toolsets/test_surface.py:127
Functiontest_value_types_construct
()
tests/lib/tools/toolsets/test_computer_surface.py:88
Methodtest_var_keyword_provider_receives_force_refresh
(self)
tests/lib/test_credentials.py:1970
Methodtest_vertex_middleware_sees_canonical_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:1994
Methodtest_view_directory
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:162
Methodtest_view_directory
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:786
Methodtest_view_error_for_files_with_too_many_lines
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:214
Methodtest_view_error_for_files_with_too_many_lines
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:840
Methodtest_view_error_for_non_existent_file
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:206
Methodtest_view_error_for_non_existent_file
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:830
Methodtest_view_file
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:145
Methodtest_view_file
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:769
Methodtest_view_file_with_range
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:188
Methodtest_view_file_with_range
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:812
Methodtest_view_lists_symlinks_only_when_they_stay_inside_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:646
Methodtest_view_lists_symlinks_only_when_they_stay_inside_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1320
Methodtest_view_preserves_crlf_line_endings
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:369
Methodtest_view_preserves_crlf_line_endings
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:997
Methodtest_view_rejects_directory_symlink_created_after_validation
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool, monkeypatch: pytest
tests/lib/tools/memory_tools/test_filesystem.py:611
Methodtest_view_rejects_directory_symlink_created_after_validation
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool, monkeypatch:
tests/lib/tools/memory_tools/test_filesystem.py:1282
Functiontest_view_result_file_types_all_keep_or_lose_their_content
(view_result: Any)
tests/test_open_telemetry.py:8549
Methodtest_walks_each_hop_through_the_chain_until_a_model_accepts
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:247
Methodtest_walks_each_hop_through_the_chain_until_a_model_accepts
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:802
Methodtest_warns_once_when_falling_back_without_a_state
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback.py:195
Methodtest_warns_once_when_falling_back_without_a_state
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:695
Functiontest_windows_network_and_device_paths_are_refused_lexically_on_windows
Refused before the filesystem is touched: resolving a UNC path makes the Windows redirector authenticate to the named host, and a DOS device name
tests/lib/tools/toolsets/test_security.py:208
Methodtest_with_expiry
(self)
tests/lib/test_credentials.py:189
Methodtest_with_middleware_appends_without_mutating_original
(self)
tests/test_middleware.py:1242
Methodtest_with_middleware_client_runs_appended_middleware_innermost
(self, respx_mock: MockRouter)
tests/test_middleware.py:1264
Methodtest_with_middleware_client_runs_appended_middleware_innermost
(self, respx_mock: MockRouter)
tests/test_middleware.py:1834
Methodtest_with_middleware_validates_like_the_constructor
(self)
tests/test_middleware.py:1254
Methodtest_with_options
(self)
tests/lib/test_vertex.py:280
Methodtest_with_options
(self)
tests/lib/test_vertex.py:801
Methodtest_with_options_alias
(self)
tests/lib/test_credentials.py:2906
Methodtest_with_options_append_idiom
(self, respx_mock: MockRouter)
tests/test_middleware.py:1895
Methodtest_with_options_client_runs_inherited_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1291
← previousnext →11,201–11,300 of 12,274, ranked by callers