MCPcopy Create free account

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

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

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:815
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:774
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:172
Methodtest_user_profile_id_header
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:1617
Methodtest_user_profile_id_header
(self, sync: bool, respx_mock: MockRouter)
tests/lib/test_azure.py:391
Functiontest_user_profile_id_is_not_sent_when_unset
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:1039
Functiontest_user_profile_id_is_sent_in_the_body
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:976
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_profiles_not_available
()
tests/lib/test_bedrock.py:969
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:591
Methodtest_validate_headers
(self)
tests/test_client.py:2042
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:1297
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:4503
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:1975
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:697
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:194
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:3063
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
Methodtest_with_options_does_not_accumulate_case_variants
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:189
Methodtest_with_options_false_and_empty_replace_the_clients_option
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4620
Methodtest_with_options_headers_case_insensitive
(self, client: Anthropic)
tests/test_client.py:666
Methodtest_with_options_headers_case_insensitive
(self, async_client: AsyncAnthropic)
tests/test_client.py:2117
Methodtest_with_options_omit_removes_default_header_case_insensitively
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:157
Methodtest_with_options_overrides
Test with_options() applies overrides while keeping everything else.
tests/lib/test_azure.py:98
Functiontest_with_options_overrides_win
(client_class: ClientClass)
tests/lib/test_client_copy.py:379
Methodtest_with_options_replaces_default_header_case_insensitively
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:179
Functiontest_with_options_replaces_default_headers_and_query
(client_class: ClientClass)
tests/lib/test_client_copy.py:404
Methodtest_with_options_replaces_propagation_with_the_rest_of_the_option
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4296
Methodtest_with_options_replaces_the_clients_whole_option
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4437
Methodtest_with_options_replaces_traces_whole_too
(self, sync: bool, spans: Spans)
tests/test_open_telemetry.py:4461
Methodtest_with_raw_response_flows_through_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1046
Methodtest_with_raw_response_flows_through_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1569
Methodtest_with_raw_response_middleware_sees_api_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1064
Methodtest_with_raw_response_middleware_sees_api_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1587
Methodtest_with_streaming_response_middleware_sees_api_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1091
Methodtest_with_streaming_response_middleware_sees_api_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1614
Functiontest_within_compares_windows_names_exactly
(root: str, child: str, expected: bool)
tests/lib/tools/test_skills.py:57
Functiontest_without_the_option_every_tool_runs_after_the_loop_body_as_before
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:164
Functiontest_without_the_option_the_tools_run_again_after_append_messages_as_before
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:202
Functiontest_without_the_option_there_is_nothing_to_defer
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:190
Functiontest_work_resource_worker_and_poller_async_only
`worker()` / `poller()` build an async-only `EnvironmentWorker` / `aiter_work` generator, so they live on `AsyncWork` and are NOT exposed on t
tests/lib/environments/test_worker.py:988
Functiontest_work_resource_worker_builds_environment_worker
`client.beta.environments.work.worker(...)` builds an `EnvironmentWorker` bound to the client, with the options threaded through (mirrors `poller`
tests/lib/environments/test_worker.py:939
Functiontest_work_resource_worker_defaults
()
tests/lib/environments/test_worker.py:974
Functiontest_work_span_ends_ok_when_the_consumer_stops_polling
(sync: bool, respx_mock: MockRouter)
tests/lib/environments/test_poller_method.py:677
Functiontest_work_span_fails_when_the_item_cannot_be_acked
(sync: bool, respx_mock: MockRouter)
tests/lib/environments/test_poller_method.py:705
Functiontest_work_span_has_no_status_when_polling_is_interrupted_during_the_ack
( sync: bool, respx_mock: MockRouter )
tests/lib/environments/test_poller_method.py:738
Functiontest_worker_can_turn_sync_deletions_off
`memory_sync_deletions="disabled"` reaches the stores: a local deletion never propagates however many syncs run, while uploads still do.
tests/lib/tools/memory_sync/test_e2e_memory.py:458
Functiontest_worker_clean_end_syncs_once_and_the_flush_adds_nothing
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_e2e_memory.py:278
Functiontest_worker_fails_the_item_when_a_memory_store_cannot_be_downloaded
A folder already at the store's path is debris from a run that died. The download refuses it and the ITEM fails — rather than serving a session wh
tests/lib/tools/memory_sync/test_e2e_memory.py:210
Functiontest_worker_fails_the_item_when_the_sessions_token_is_missing
The session has memory stores attached but the work item carried no sessions token, so its memories cannot be mounted. The ITEM fails before a
tests/lib/tools/memory_sync/test_e2e_memory.py:165
Functiontest_worker_final_sync_is_bounded_and_the_flush_still_runs
A final sync that hangs is cut off at MEMORY_FLUSH_TIMEOUT and says so; the flush after it still uploads the last edit.
tests/lib/tools/memory_sync/test_e2e_memory.py:370
← previousnext →11,701–11,800 of 12,824, ranked by callers