MCPcopy Create free account

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

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

Functiontest_async_unnamed_file_tuple_uses_base_name
()
tests/test_files.py:79
Methodtest_async_unreachable_token_endpoint_error_leaves_out_url_with_password
( self, respx_mock: MockRouter, base_url: str, shown: str )
tests/lib/test_credentials.py:3740
Functiontest_async_user_profile_action_urls_are_rejected
(respx_mock: MockRouter)
tests/lib/test_aws.py:663
Methodtest_async_vertex_middleware_sees_canonical_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:2372
Methodtest_async_workload_identity_error_propagates_through_request_flow
Async counterpart of the sync regression test: a WorkloadIdentityError raised by the credential provider must bubble out of the async
tests/lib/test_credentials.py:4004
Methodtest_async_workload_identity_exchange
Async client exchanges the OIDC JWT via the token endpoint and attaches the resulting Bearer token to the request.
tests/lib/test_credentials.py:3719
Functiontest_attributes_set_before_iteration_are_used
()
tests/lib/tools/test_session_runner.py:2102
Methodtest_audio_unsupported
(self)
tests/lib/tools/test_mcp_tool.py:138
Methodtest_auth_explicitly_omitted
(self, client_cls: ClientClass, header: str)
tests/test_header_case_sensitivity.py:252
Methodtest_auth_explicitly_omitted_on_the_client
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:260
Methodtest_auth_supplied_via_custom_headers_env_var
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:242
Methodtest_auth_supplied_via_default_headers
(self, client_cls: ClientClass, headers: Dict[str, str])
tests/test_header_case_sensitivity.py:217
Methodtest_auth_supplied_via_extra_headers
(self, client_cls: ClientClass, headers: Dict[str, str])
tests/test_header_case_sensitivity.py:233
Methodtest_auth_token_returns_static
(self, clean_env: pytest.MonkeyPatch)
tests/lib/test_credentials.py:2155
Methodtest_authorization_default_header_does_not_send_two_credentials
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:108
Methodtest_authorized_user_fresh_token_no_refresh
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:748
Methodtest_authorized_user_refresh_and_writeback
Refresh writes back to credentials/ only — configs/ stays untouched.
tests/lib/test_credentials.py:672
Methodtest_authorized_user_refresh_beta_headers
refresh_token POST must carry oauth-2025-04-20 but NOT oidc-federation-2026-04-01.
tests/lib/test_credentials.py:792
Methodtest_authorized_user_refresh_failure
(self, respx_mock: MockRouter, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:763
Methodtest_authorized_user_refresh_writeback_without_fchmod
( self, respx_mock: MockRouter, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:722
Methodtest_auto_discovered_profile_error_is_silent_fallthrough
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:2356
Methodtest_awaited_on_the_running_loop_and_cached
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:4115
Functiontest_aws_client_in_api_key_mode_sends_only_the_bearer
`AnthropicAWS.copy()` passes the parent's key back in, so the base `copy()` cannot drop it. The key would then win over the bearer.
tests/lib/test_scoped_client.py:225
Methodtest_aws_creds_use_sigv4_mode
(self)
tests/lib/test_bedrock_mantle.py:227
Functiontest_aws_profile_suppresses_env_api_key
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:349
Methodtest_aws_region_takes_precedence_over_default
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:297
Functiontest_backfill_happens_even_with_caller_authorization
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:815
Functiontest_backoff_starts_over_when_the_stream_delivers_an_event
(how: str)
tests/lib/tools/test_session_runner.py:1433
Functiontest_backoff_starts_over_when_the_stream_delivers_an_event_that_the_history_had
()
tests/lib/tools/test_session_runner.py:1441
Methodtest_bad_config_json
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1023
Methodtest_bad_model_surfaces_typed_error
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:86
Methodtest_bad_model_surfaces_typed_error
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:141
Functiontest_base64_file_input
(send: Send, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:533
Functiontest_base_credential_chain_never_engages
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1196
Functiontest_base_credential_chain_never_engages_async
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1211
Methodtest_base_url_arg_takes_precedence_over_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:101
Methodtest_base_url_argument_wins
( self, client_class: type[AnthropicFoundry | AsyncAnthropicFoundry], monkeypatch: pytest.MonkeyPatch
tests/lib/test_azure.py:219
Methodtest_base_url_derived
(self)
tests/lib/test_google_cloud.py:1321
Methodtest_base_url_derived_from_project_and_location
(self)
tests/lib/test_google_cloud.py:131
Methodtest_base_url_env
(self)
tests/test_client.py:1199
Methodtest_base_url_env
(self)
tests/test_client.py:2957
Methodtest_base_url_from_config
Config `base_url` is used when no ctor override is given.
tests/lib/test_credentials.py:1066
Methodtest_base_url_no_trailing_slash
(self, client: Anthropic)
tests/test_client.py:1241
Methodtest_base_url_no_trailing_slash
(self, client: AsyncAnthropic)
tests/test_client.py:3003
Functiontest_base_url_override
()
tests/lib/test_aws.py:372
Methodtest_base_url_setter
(self)
tests/test_client.py:1189
Methodtest_base_url_setter
(self)
tests/test_client.py:2945
Methodtest_base_url_trailing_slash
(self, client: Anthropic)
tests/test_client.py:1217
Methodtest_base_url_trailing_slash
(self, client: AsyncAnthropic)
tests/test_client.py:2977
Methodtest_base_url_values_are_single_path_segments
( self, values: tuple[str, str, str], segments: tuple[str, str, str], deferred
tests/lib/test_google_cloud.py:143
Methodtest_base_url_values_are_single_path_segments
( self, values: tuple[str, str, str], segments: tuple[str, str, str], deferred
tests/lib/test_google_cloud.py:1330
Functiontest_bash_allexport_does_not_export_the_command
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1264
Functiontest_bash_background_job_runs_until_close_or_restart
(bash: Any, end: str)
tests/lib/tools/test_agent_toolset.py:1483
Functiontest_bash_cancellation_before_the_command_is_sent_keeps_the_shell
( bash: Any, tmp_path: Path, running: str | None )
tests/lib/tools/test_agent_toolset.py:1300
Functiontest_bash_cancellation_kills_the_command
(bash: Any, tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1072
Functiontest_bash_close_does_not_signal_the_group_of_a_killed_shell_again
( bash: Any, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_agent_toolset.py:1353
Functiontest_bash_close_does_not_wait_for_a_process_that_left_the_group
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1523
Functiontest_bash_close_during_a_command_leaves_no_output_file
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_agent_toolset.py:1664
Functiontest_bash_command_dies_with_the_worker
(tmp_path: Path, command: str)
tests/lib/tools/test_agent_toolset.py:1115
Functiontest_bash_command_gets_no_sigpipe_when_the_worker_dies
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1133
Functiontest_bash_does_not_get_credentials_in_any_letter_case
(bash: Any, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/test_agent_toolset.py:1549
Functiontest_bash_does_not_pass_on_histfile
(bash: Any, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/test_agent_toolset.py:1211
Functiontest_bash_drops_what_a_background_job_prints_between_calls
(bash: Any, tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1511
Functiontest_bash_fires_a_return_trap_once
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1260
Functiontest_bash_keeps_a_variable_made_with_declare
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1270
Functiontest_bash_keeps_only_the_latest_output_file
(bash: Any, restart: bool)
tests/lib/tools/test_agent_toolset.py:1656
Functiontest_bash_keeps_the_shell_after_an_odd_command
(bash: Any, tmp_path: Path, command: str)
tests/lib/tools/test_agent_toolset.py:1445
Functiontest_bash_keeps_traps_and_arguments
(bash: Any, state: str)
tests/lib/tools/test_agent_toolset.py:1254
Functiontest_bash_kills_the_jobs_of_a_shell_that_ended
(bash: Any, end: str)
tests/lib/tools/test_agent_toolset.py:1176
Functiontest_bash_kills_the_jobs_of_a_shell_that_ended_after_its_watchdog
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1190
Functiontest_bash_kills_the_jobs_of_a_shell_that_was_killed_between_calls
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1182
Functiontest_bash_leaves_no_process_behind
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1198
Functiontest_bash_long_output_is_cut_and_saved
(bash: Any, command: str, whole: str, kept: int)
tests/lib/tools/test_agent_toolset.py:1582
Functiontest_bash_long_output_is_cut_when_it_cannot_be_saved
(bash: Any, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/test_agent_toolset.py:1686
Functiontest_bash_output_directory_replaced_by_a_symlink_does_not_block_writes
( bash: Any, ctx: AgentToolContext, tmp_path: Path )
tests/lib/tools/test_agent_toolset.py:1642
Functiontest_bash_output_directory_replaced_by_a_symlink_is_not_readable
( bash: Any, ctx: AgentToolContext, tmp_path_factory: pytest.TempPathFactory, monkeypatch: pytest.MonkeyPa
tests/lib/tools/test_agent_toolset.py:1626
Functiontest_bash_output_file_is_bounded
(bash: Any, command: str)
tests/lib/tools/test_agent_toolset.py:1679
Functiontest_bash_output_file_is_only_readable
( bash: Any, ctx: AgentToolContext, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, temp_dir_in_workdir:
tests/lib/tools/test_agent_toolset.py:1609
Functiontest_bash_output_file_is_private_and_readable_until_close
(bash: Any, ctx: AgentToolContext)
tests/lib/tools/test_agent_toolset.py:1594
Functiontest_bash_process_that_got_the_id_of_an_ended_shell_survives_the_worker
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1153
Functiontest_bash_process_that_survives_the_kill_can_still_print
(bash: Any, tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1538
Functiontest_bash_refuses_every_command_after_the_shell_ended_until_a_restart
( bash: Any, tmp_path: Path, end: str, restart_with: str | None )
tests/lib/tools/test_agent_toolset.py:1080
Functiontest_bash_removes_an_output_file_that_could_not_be_completed
( bash: Any, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_agent_toolset.py:1694
Functiontest_bash_reports_the_exit_code
(tmp_path: Path, command: str)
tests/lib/tools/test_agent_toolset.py:1455
Functiontest_bash_reports_the_exit_code_under_a_trace
(bash: Any, trace: str)
tests/lib/tools/test_agent_toolset.py:1465
Functiontest_bash_restart_that_is_cancelled_as_its_turn_comes_keeps_the_shell
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1315
Functiontest_bash_returns_only_what_the_command_prints_to_stderr
( bash: Any, ctx: AgentToolContext, tmp_path: Path )
tests/lib/tools/test_agent_toolset.py:1471
Functiontest_bash_returns_the_output_and_says_if_the_shell_is_gone
( bash: Any, command: str, output: str, is_error: bool, keeps_shell: bool )
tests/lib/tools/test_agent_toolset.py:1412
Functiontest_bash_runs_commands_after_a_function_or_alias_hides_a_builtin
(bash: Any, hide: str, name: str)
tests/lib/tools/test_agent_toolset.py:1247
Functiontest_bash_runs_concurrent_calls_in_turn
(bash: Any)
tests/lib/tools/test_agent_toolset.py:1496
Functiontest_bash_runs_nothing_after_an_expansion_that_failed
(bash: Any, tmp_path: Path, failure: str)
tests/lib/tools/test_agent_toolset.py:1239
Functiontest_bash_runs_nothing_more_of_a_stopped_command
(bash: Any, tmp_path: Path, command: str, stop: str)
tests/lib/tools/test_agent_toolset.py:1286
Functiontest_bash_runs_nothing_of_a_malformed_command
(bash: Any, tmp_path: Path, command: str)
tests/lib/tools/test_agent_toolset.py:1230
Functiontest_bash_runs_the_command_after_a_shell_that_could_not_start
(bash: Any, ctx: AgentToolContext)
tests/lib/tools/test_agent_toolset.py:1331
Functiontest_bash_sentinel_not_spoofable
A command that prints a hardcoded marker can't truncate output or spoof the exit code.
tests/lib/tools/test_agent_toolset.py:951
Functiontest_bash_session_closed_property
`closed` is the inverse of the old `alive` (TS parity) and there is no `alive` attribute any more.
tests/lib/tools/test_agent_toolset.py:976
Functiontest_bash_session_persistence
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:928
Functiontest_bash_session_that_is_already_cancelled_sends_nothing
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1341
Functiontest_bash_stdin_redirect
A stdin-reading command gets immediate EOF instead of hanging until timeout.
tests/lib/tools/test_agent_toolset.py:964
Functiontest_bash_timeout
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:940
← previousnext →6,201–6,300 of 14,068, ranked by callers