Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
14,068 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
14,068
◇
Types & classes
4,501
↳
Endpoints
96
Method
test_missing_credentials_error
Test error raised when no credentials are provided.
tests/lib/test_azure.py:64
Function
test_missing_kwarg_raises_key_error
()
tests/test_utils/test_path.py:67
Function
test_missing_model_is_rejected
(sync: bool, respx_mock: MockRouter)
tests/lib/test_bedrock.py:347
Method
test_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:288
Method
test_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:1479
Method
test_missing_required_fields
(self)
tests/lib/test_credentials.py:3625
Method
test_missing_resource_error
Test error raised when neither resource nor base_url is provided.
tests/lib/test_azure.py:71
Method
test_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:80
Method
test_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:706
Method
test_model_is_percent_encoded_in_path
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:390
Method
test_model_is_percent_encoded_in_path
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:914
Function
test_model_rebuild_of_built_model_returns_none
()
tests/test_models.py:1159
Function
test_model_schema_generated_once_and_not_shared_between_calls
()
tests/lib/_parse/test_transform.py:355
Function
test_model_with_semicolon_that_is_not_a_dot_segment_is_sent_raw
( model: str, segment: bytes, beta: bool, sync: bool, respx_mock: MockRouter )
tests/lib/test_bedrock.py:297
Method
test_models_not_available
(self)
tests/lib/test_bedrock_mantle.py:188
Function
test_models_with_unresolved_forward_references
(send: Send)
tests/test_prepare.py:480
Function
test_moves_unsupported_const_and_enum_into_description
(schema: dict[str, Any], expected: dict[str, Any])
tests/lib/_parse/test_transform.py:147
Function
test_multi_byte_character_multiple_chunks
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:382
Function
test_multi_byte_character_multiple_chunks
( sync: bool, )
tests/decoders/test_jsonl.py:51
Method
test_multipart_content_type_case_insensitive
(self, client: Anthropic)
tests/test_client.py:700
Method
test_multipart_content_type_case_insensitive
(self, async_client: AsyncAnthropic)
tests/test_client.py:2452
Method
test_multipart_media_type_is_matched_case_insensitively
(self)
tests/test_header_case_sensitivity.py:313
Method
test_multipart_repeating_array
(self, client: Anthropic)
tests/test_client.py:1048
Method
test_multipart_repeating_array
(self, async_client: AsyncAnthropic)
tests/test_client.py:2802
Function
test_multiple_data_lines
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:172
Function
test_multiple_data_lines_with_empty_line
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:133
Function
test_multiple_events
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:87
Function
test_multiple_events_with_data
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:109
Function
test_multiple_files
()
tests/test_extract_files.py:29
Function
test_multiple_params
()
tests/test_required_args.py:43
Function
test_multiple_params_multiple_variants
()
tests/test_required_args.py:89
Method
test_multiple_paths
(self)
tests/test_files.py:154
Function
test_multiple_variants
()
tests/test_required_args.py:71
Function
test_navigate_and_screenshot_results_render_from_their_models
()
tests/lib/tools/toolsets/test_pipeline.py:785
Function
test_navigate_line_folds_control_characters_and_omits_absent_fields
()
tests/lib/tools/toolsets/test_pipeline.py:78
Function
test_navigate_renders_one_line_and_attaches_the_browser_state_block
()
tests/lib/tools/toolsets/test_pipeline.py:59
Method
test_neither_provided_passes
(self)
tests/lib/test_aws_auth.py:25
Method
test_nested_array_path_copies_list_and_elements
(self)
tests/test_files.py:137
Function
test_nested_brackets
()
tests/test_qs.py:49
Function
test_nested_dictionary_model
()
tests/test_models.py:150
Function
test_nested_discriminated_union
()
tests/test_models.py:1008
Function
test_nested_dotted
(method: str)
tests/test_qs.py:37
Function
test_nested_union_invalid_data
()
tests/test_models.py:298
Function
test_nested_union_multiple_variants
()
tests/test_models.py:270
Function
test_nested_union_of_mixed_types
()
tests/test_models.py:252
Function
test_nested_union_of_models
()
tests/test_models.py:237
Method
test_nesting_different_states_restores_the_outer_pin
(self)
tests/lib/test_refusal_fallback.py:1046
Function
test_never_runs_the_call_that_was_cut_off_by
(setup: SetupFactory, cut_off_reply: Callable[[], Reply])
tests/lib/tools/test_runner_eager_tools.py:676
Function
test_new_index_inserts_the_fragment_as_a_fresh_block
()
tests/lib/sessions/test_accumulate.py:77
Function
test_new_lines_in_json
( sync: bool, )
tests/decoders/test_jsonl.py:39
Method
test_next_force_preserved_on_provider_failure
If invalidate() set the force flag and the provider then raises, the flag must NOT be consumed — a subsequent retry must still see for
tests/lib/test_credentials.py:1988
Method
test_next_force_preserved_on_provider_failure
(self)
tests/lib/test_credentials.py:4206
Method
test_next_force_preserved_when_provider_returns_non_token
A rejected provider return does not consume the force flag set by invalidate().
tests/lib/test_credentials.py:2011
Method
test_next_force_preserved_when_provider_returns_non_token
(self)
tests/lib/test_credentials.py:4222
Method
test_next_send_continues_the_thread_with_only_the_new_messages
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:127
Function
test_next_sequential_index_inserts
()
tests/lib/sessions/test_accumulate.py:112
Function
test_no_api_key_leak
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1086
Function
test_no_api_key_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1106
Method
test_no_args_no_env_defaults_to_sigv4
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:97
Function
test_no_auth_token_leak
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1125
Function
test_no_auth_token_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1144
Function
test_no_call_starts_after_the_one_at_which_the_consumer_stops_iterating
( calls: tuple[Call, ...], started: list[str], at: float )
tests/lib/tools/test_session_runner.py:1939
Function
test_no_call_starts_while_disconnected
(failing: str, interrupted: bool, started: list[str])
tests/lib/tools/test_session_runner.py:1459
Method
test_no_compaction_tokens_without_a_compaction
( self, iterations: list[dict[str, Any]] | None, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2038
Method
test_no_expiry_never_refreshes
(self)
tests/lib/test_credentials.py:1644
Method
test_no_input_messages_are_an_empty_list_even_when_the_other_content_attributes_exceed_the_limit
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6686
Method
test_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:1464
Method
test_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:2116
Function
test_no_model_rebuild_override_when_pydantic_locks_it
()
tests/test_models.py:1147
Function
test_no_numeric_bound_is_applied_beyond_the_generated_types
()
tests/lib/tools/toolsets/test_computer_pipeline.py:194
Method
test_no_request_option_drops_or_repeats_the_helper_tag
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:253
Function
test_no_result_is_sent_once_the_lease_is_lost
(steps: list[Step], lost_at: float)
tests/lib/environments/test_worker.py:390
Method
test_no_retry_on_non_401_error
Non-401 errors from the provider are not retried.
tests/lib/test_credentials.py:1750
Method
test_no_spans_without_a_tracer
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:2130
Method
test_no_spurious_env_shadow_warning
( self, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture )
tests/lib/test_google_cloud.py:391
Method
test_no_stop_sequences_set_no_attribute
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6748
Method
test_no_supported_mime_raises
(self)
tests/lib/tools/test_mcp_tool.py:238
Function
test_no_sync_follows_a_call_that_is_cancelled_when_the_lease_ends
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:503
Method
test_no_url_query_when_no_defined_parameter_is_sent
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3441
Method
test_no_warning_when_output_format_not_provided
Verify no deprecation warning when output_format is not used.
tests/api_resources/beta/test_output_format_conversion.py:142
Method
test_no_warning_when_using_output_config
Verify no deprecation warning when using output_config.format directly.
tests/api_resources/beta/test_output_format_conversion.py:168
Method
test_no_x_api_key_with_azure_ad_token_provider
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_azure.py:246
Method
test_non_401_omits_hint
The hint is 401-specific; a 5xx or 400 shouldn't suggest a config change.
tests/lib/test_credentials.py:1391
Method
test_non_anthropic_error_from_provider_releases_waiters
A non-`AnthropicError` / non-`httpx2.HTTPError` from the leader provider must still release `_refresh_event` so concurrent waiters don
tests/lib/test_credentials.py:4601
Method
test_non_application_json_content_type_for_json_data
Response that sets Content-Type to something other than application/json but returns json data
tests/test_client.py:1169
Method
test_non_application_json_content_type_for_json_data
Response that sets Content-Type to something other than application/json but returns json data
tests/test_client.py:2923
Method
test_non_bearer_token_type_rejected
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1417
Method
test_non_json_response_does_not_retain_assertion
(self)
tests/lib/test_credentials.py:5397
Method
test_non_str_token_does_not_crash_repr
(self)
tests/lib/test_credentials.py:5281
Method
test_non_streaming
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:59
Method
test_non_streaming
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:116
Method
test_non_streaming_runner_does_not_add_the_structured_outputs_beta
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:148
Method
test_none_path_param_is_rejected
(self, client: Anthropic)
tests/test_client.py:1311
Method
test_none_path_param_is_rejected
(self, async_client: AsyncAnthropic)
tests/test_client.py:3078
Function
test_not_found_is_raised_when_the_session_is_deleted_with_no_event
()
tests/lib/tools/test_session_runner.py:1662
Function
test_nothing_is_logged_as_failed_for_a_cancelled_consumer_or_an_idle_stop
( until: float, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_session_runner.py:1964
Method
test_nothing_is_logged_for_non_streaming_retries
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback.py:1097
Function
test_nothing_is_read_or_run_until_a_heartbeat_succeeds
(fault: Fault)
tests/lib/environments/test_worker.py:179
Function
test_nothing_runs_and_iteration_ends_after_one_connection_to_an_ended_session
( end: str, requests: list[str] )
tests/lib/tools/test_session_runner.py:1673
Function
test_nothing_runs_from_a_partly_read_history
()
tests/lib/tools/test_session_runner.py:1449
← previous
next →
9,201–9,300 of 14,068, ranked by callers