MCPcopy Create free account

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

Functions14,068 in github.com/anthropics/anthropic-sdk-python

Functiontest_holds_a_call_that_is_deferred
(setup: SetupFactory, at: str)
tests/lib/tools/test_runner_eager_tools.py:406
Functiontest_holds_a_call_that_the_caller_defers_until_the_loop_body_ends
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:82
Methodtest_http_4xx_does_not_retain_assertion
(self)
tests/lib/test_credentials.py:5370
Methodtest_http_base_url_error_leaves_out_password_from_any_source
( self, source: str, client_cls: type[Anthropic] | type[AsyncAnthropic], clean
tests/lib/test_credentials.py:2855
Methodtest_http_base_url_error_leaves_out_url_with_password
( self, base_url: str, shown: str, auth_type: str, client_cls: type[Anthropic] | type[AsyncAnthropic]
tests/lib/test_credentials.py:2841
Methodtest_http_base_url_in_config_file_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4530
Methodtest_http_base_url_on_workload_provider_raises_anthropic_error
(self)
tests/lib/test_credentials.py:4521
Methodtest_http_base_url_rejected
(self)
tests/lib/test_credentials.py:3633
Methodtest_http_base_url_that_only_starts_like_loopback_gets_no_request
( self, respx_mock: MockRouter, base_url: str )
tests/lib/test_credentials.py:2905
Methodtest_http_base_url_that_only_starts_like_loopback_rejected
( self, base_url: str, auth_type: str, client_cls: type[Anthropic] | type[AsyncAnthropic] )
tests/lib/test_credentials.py:2895
Methodtest_http_client_timeout_option
(self)
tests/test_client.py:428
Methodtest_http_client_timeout_option
(self)
tests/test_client.py:2174
Methodtest_http_loopback_base_url_gets_the_exchange
(self, respx_mock: MockRouter, base_url: str, host: str)
tests/lib/test_credentials.py:2915
Methodtest_httpx_objects_rejected
(self, client: Anthropic)
tests/test_client.py:564
Methodtest_httpx_objects_rejected
(self, async_client: AsyncAnthropic)
tests/test_client.py:2312
Functiontest_idempotent_and_does_not_mutate_input
( send: Send, make_body: Callable[[], object], sent: object, monkeypatch: pytest.MonkeyPatch )
tests/test_prepare.py:714
Methodtest_identity_token_file_binary_content_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4569
Methodtest_identity_token_file_directory_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4562
Methodtest_identity_token_file_empty_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4577
Methodtest_identity_token_file_permission_error_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4546
Methodtest_identity_token_provider_override
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3452
Functiontest_idle_flush_is_skipped_while_a_call_is_running
(notes: Path, reconnect: bool)
tests/lib/tools/memory_sync/test_e2e_memory.py:419
Functiontest_idle_poller_logs_once_and_then_every_5_minutes
(sync: bool, caplog: pytest.LogCaptureFixture)
tests/lib/environments/test_poller.py:121
Functiontest_idle_stop_waits_for_a_connection_that_succeeds
(outage: list[Step], ended: float)
tests/lib/tools/test_session_runner.py:1892
Methodtest_ids_in_the_path
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7319
Functiontest_ignores_incorrect_paths
( query: dict[str, object], paths: Sequence[Sequence[str]], expected: list[tuple[str, FileTypes]],
tests/test_extract_files.py:65
Methodtest_image_content_gif
(self)
tests/lib/tools/test_mcp_tool.py:104
Methodtest_image_content_jpeg
(self)
tests/lib/tools/test_mcp_tool.py:97
Methodtest_image_content_png
(self)
tests/lib/tools/test_mcp_tool.py:89
Methodtest_image_content_webp
(self)
tests/lib/tools/test_mcp_tool.py:108
Functiontest_image_media_types_track_the_generated_image_source
()
tests/lib/tools/toolsets/test_computer_surface.py:99
Methodtest_image_resource
(self)
tests/lib/tools/test_mcp_tool.py:230
Methodtest_image_unsupported_mime_type
(self)
tests/lib/tools/test_mcp_tool.py:112
Methodtest_includes_query_params_in_signing
URL query params must be part of the signed request.
tests/lib/test_aws_auth.py:541
Methodtest_includes_security_token_header
(self)
tests/lib/test_aws_auth.py:490
Methodtest_incomplete_response
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:902
Functiontest_init_api_key_mode
()
tests/lib/test_aws.py:26
Functiontest_init_async_api_key_mode
()
tests/lib/test_aws.py:75
Functiontest_init_async_requires_workspace_id
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:91
Functiontest_init_async_sigv4
()
tests/lib/test_aws.py:81
Functiontest_init_requires_region_for_sigv4
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:57
Functiontest_init_requires_workspace_id
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:63
Functiontest_init_sigv4_default_credential_chain
()
tests/lib/test_aws.py:51
Functiontest_init_sigv4_explicit_creds
()
tests/lib/test_aws.py:32
Functiontest_init_sigv4_profile
()
tests/lib/test_aws.py:45
Methodtest_init_with_token_provider_and_base_url
(self)
tests/lib/test_google_cloud.py:117
Functiontest_init_workspace_id_from_env
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:69
Methodtest_initialization_from_environment_variables
Test client initialization falls back to environment variables.
tests/lib/test_azure.py:53
Methodtest_initialization_from_environment_variables
Test async client initialization falls back to environment variables.
tests/lib/test_azure.py:153
Methodtest_initialization_with_azure_ad_token_provider
Test client initialization with Azure AD token provider.
tests/lib/test_azure.py:39
Methodtest_initialization_with_base_url
Test client initialization with base_url instead of resource.
tests/lib/test_azure.py:30
Methodtest_inner_middleware_wins_whatever_the_header_casing
(self, respx_mock: MockRouter)
tests/test_middleware.py:898
Methodtest_inner_middleware_wins_whatever_the_header_casing
(self, respx_mock: MockRouter)
tests/test_middleware.py:1749
Methodtest_input_messages_under_the_bound_are_the_json_of_the_whole_list
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6453
Methodtest_input_transformations_propagated
( self, respx_mock: MockRouter, fixture: str, expected: List[Dict[str, str]] )
tests/lib/streaming/test_beta_messages.py:699
Methodtest_input_transformations_propagated
( self, respx_mock: MockRouter, fixture: str, expected: List[Dict[str, str]] )
tests/lib/streaming/test_beta_messages.py:1038
Functiontest_inputs_are_parsed_into_the_generated_models_and_undeclared_keys_are_kept
()
tests/lib/tools/toolsets/test_computer_pipeline.py:148
Methodtest_insert
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:320
Methodtest_insert
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:946
Methodtest_insert_at_beginning_of_file
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:337
Methodtest_insert_at_beginning_of_file
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:963
Methodtest_insert_at_end_of_file
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:353
Methodtest_insert_at_end_of_file
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:981
Methodtest_insert_error_for_invalid_insert_line
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:418
Methodtest_insert_error_for_invalid_insert_line
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1054
Methodtest_insert_error_for_non_existent_file
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:406
Methodtest_insert_error_for_non_existent_file
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1042
Methodtest_insert_preserves_crlf_line_endings
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:393
Methodtest_insert_preserves_crlf_line_endings
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1027
Functiontest_int_to_float_safe_conversion
()
tests/test_models.py:487
Functiontest_integer_schema_with_min_max_exclusive
()
tests/lib/_parse/test_transform.py:278
Functiontest_interpolation
(template: str, kwargs: dict[str, Any], expected: str)
tests/test_utils/test_path.py:63
Functiontest_interrupt_of_a_subagent_that_requires_action_lists_its_resolved_call_before_the_turn_ends
()
tests/lib/tools/test_fake_sessions_api.py:132
Functiontest_interrupted_command_stops_and_later_commands_do_not_run
(shell: list[Any], tmp_path: Path)
tests/lib/tools/test_session_runner.py:339
Functiontest_interrupted_download_removes_the_folder_and_is_not_a_failure
(notes: Path, ending: Step)
tests/lib/tools/memory_sync/test_e2e_memory.py:670
Functiontest_interval_below_the_minimum_is_rejected
(interval: float)
tests/lib/tools/memory_sync/test_e2e_memory.py:719
Methodtest_invalid_expires_in_does_not_retain_minted_token
(self, expires_in: str)
tests/lib/test_credentials.py:5377
Methodtest_invalid_http_client
(self)
tests/test_client.py:554
Methodtest_invalid_http_client
(self)
tests/test_client.py:2302
Methodtest_invalid_json_credentials_does_not_retain_raw_text
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:5578
Methodtest_invalid_profile_name_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4505
Methodtest_invalidate
(self)
tests/lib/test_credentials.py:1723
Methodtest_invalidate_forces_provider_refresh
After invalidate(), the next provider call receives force_refresh=True so providers with on-disk caches bypass their freshness short-c
tests/lib/test_credentials.py:1916
Methodtest_is_content_query
(self, query: str, content_names: tuple[str, ...], content: bool)
tests/test_open_telemetry.py:3370
Methodtest_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback.py:844
Methodtest_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback.py:941
Methodtest_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback_streaming.py:1650
Methodtest_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback_streaming.py:1901
Functiontest_isinstance_check
(client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:423
Functiontest_isinstance_does_not_error
()
tests/test_utils/test_proxy.py:26
Functiontest_iso8601_datetime
()
tests/test_models.py:457
Functiontest_item_fails_and_does_not_change_the_folder_when_one_is_already_there
( notes: Path, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_e2e_memory.py:695
Functiontest_item_fails_before_skills_are_downloaded_when_its_memory_cannot_be
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:686
Functiontest_item_fails_when_it_has_memory_and_no_token
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:679
Functiontest_item_is_claimed_served_and_force_stopped_when_the_session_is_idle
(variant: Variant)
tests/lib/environments/test_worker.py:94
Functiontest_item_is_dropped_when_the_api_refuses_the_repeat_of_a_heartbeat_whose_response_was_lost
(fault: Fault)
tests/lib/environments/test_worker.py:336
Functiontest_item_is_force_stopped_after_the_loop_body
(sync: bool)
tests/lib/environments/test_poller.py:178
Functiontest_item_is_not_stopped_when_a_heartbeat_is_refused
(status: int)
tests/lib/environments/test_worker.py:464
Functiontest_item_is_not_stopped_when_it_was_queued_again
(variant: Variant)
tests/lib/environments/test_worker.py:311
Functiontest_item_is_not_stopped_when_the_heartbeat_in_flight_at_a_cancel_gets_a_412
()
tests/lib/environments/test_worker.py:518
← previousnext →7,301–7,400 of 14,068, ranked by callers