MCPcopy Create free account

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

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

Methodtest_missing_credentials_error
Test error raised when no credentials are provided.
tests/lib/test_azure.py:64
Functiontest_missing_kwarg_raises_key_error
()
tests/test_utils/test_path.py:67
Functiontest_missing_model_is_rejected
(sync: bool, respx_mock: MockRouter)
tests/lib/test_bedrock.py:347
Methodtest_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:288
Methodtest_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:1479
Methodtest_missing_required_fields
(self)
tests/lib/test_credentials.py:3625
Methodtest_missing_resource_error
Test error raised when neither resource nor base_url is provided.
tests/lib/test_azure.py:71
Methodtest_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:80
Methodtest_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:706
Methodtest_model_is_percent_encoded_in_path
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:390
Methodtest_model_is_percent_encoded_in_path
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:914
Functiontest_model_rebuild_of_built_model_returns_none
()
tests/test_models.py:1159
Functiontest_model_schema_generated_once_and_not_shared_between_calls
()
tests/lib/_parse/test_transform.py:355
Functiontest_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
Methodtest_models_not_available
(self)
tests/lib/test_bedrock_mantle.py:188
Functiontest_models_with_unresolved_forward_references
(send: Send)
tests/test_prepare.py:480
Functiontest_moves_unsupported_const_and_enum_into_description
(schema: dict[str, Any], expected: dict[str, Any])
tests/lib/_parse/test_transform.py:147
Functiontest_multi_byte_character_multiple_chunks
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:382
Functiontest_multi_byte_character_multiple_chunks
( sync: bool, )
tests/decoders/test_jsonl.py:51
Methodtest_multipart_content_type_case_insensitive
(self, client: Anthropic)
tests/test_client.py:700
Methodtest_multipart_content_type_case_insensitive
(self, async_client: AsyncAnthropic)
tests/test_client.py:2452
Methodtest_multipart_media_type_is_matched_case_insensitively
(self)
tests/test_header_case_sensitivity.py:313
Methodtest_multipart_repeating_array
(self, client: Anthropic)
tests/test_client.py:1048
Methodtest_multipart_repeating_array
(self, async_client: AsyncAnthropic)
tests/test_client.py:2802
Functiontest_multiple_data_lines
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:172
Functiontest_multiple_data_lines_with_empty_line
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:133
Functiontest_multiple_events
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:87
Functiontest_multiple_events_with_data
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:109
Functiontest_multiple_files
()
tests/test_extract_files.py:29
Functiontest_multiple_params
()
tests/test_required_args.py:43
Functiontest_multiple_params_multiple_variants
()
tests/test_required_args.py:89
Methodtest_multiple_paths
(self)
tests/test_files.py:154
Functiontest_multiple_variants
()
tests/test_required_args.py:71
Functiontest_navigate_and_screenshot_results_render_from_their_models
()
tests/lib/tools/toolsets/test_pipeline.py:785
Functiontest_navigate_line_folds_control_characters_and_omits_absent_fields
()
tests/lib/tools/toolsets/test_pipeline.py:78
Functiontest_navigate_renders_one_line_and_attaches_the_browser_state_block
()
tests/lib/tools/toolsets/test_pipeline.py:59
Methodtest_neither_provided_passes
(self)
tests/lib/test_aws_auth.py:25
Methodtest_nested_array_path_copies_list_and_elements
(self)
tests/test_files.py:137
Functiontest_nested_brackets
()
tests/test_qs.py:49
Functiontest_nested_dictionary_model
()
tests/test_models.py:150
Functiontest_nested_discriminated_union
()
tests/test_models.py:1008
Functiontest_nested_dotted
(method: str)
tests/test_qs.py:37
Functiontest_nested_union_invalid_data
()
tests/test_models.py:298
Functiontest_nested_union_multiple_variants
()
tests/test_models.py:270
Functiontest_nested_union_of_mixed_types
()
tests/test_models.py:252
Functiontest_nested_union_of_models
()
tests/test_models.py:237
Methodtest_nesting_different_states_restores_the_outer_pin
(self)
tests/lib/test_refusal_fallback.py:1046
Functiontest_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
Functiontest_new_index_inserts_the_fragment_as_a_fresh_block
()
tests/lib/sessions/test_accumulate.py:77
Functiontest_new_lines_in_json
( sync: bool, )
tests/decoders/test_jsonl.py:39
Methodtest_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
Methodtest_next_force_preserved_on_provider_failure
(self)
tests/lib/test_credentials.py:4206
Methodtest_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
Methodtest_next_force_preserved_when_provider_returns_non_token
(self)
tests/lib/test_credentials.py:4222
Methodtest_next_send_continues_the_thread_with_only_the_new_messages
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:127
Functiontest_next_sequential_index_inserts
()
tests/lib/sessions/test_accumulate.py:112
Functiontest_no_api_key_leak
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1086
Functiontest_no_api_key_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1106
Methodtest_no_args_no_env_defaults_to_sigv4
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:97
Functiontest_no_auth_token_leak
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1125
Functiontest_no_auth_token_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:1144
Functiontest_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
Functiontest_no_call_starts_while_disconnected
(failing: str, interrupted: bool, started: list[str])
tests/lib/tools/test_session_runner.py:1459
Methodtest_no_compaction_tokens_without_a_compaction
( self, iterations: list[dict[str, Any]] | None, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2038
Methodtest_no_expiry_never_refreshes
(self)
tests/lib/test_credentials.py:1644
Methodtest_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
Methodtest_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:1464
Methodtest_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:2116
Functiontest_no_model_rebuild_override_when_pydantic_locks_it
()
tests/test_models.py:1147
Functiontest_no_numeric_bound_is_applied_beyond_the_generated_types
()
tests/lib/tools/toolsets/test_computer_pipeline.py:194
Methodtest_no_request_option_drops_or_repeats_the_helper_tag
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:253
Functiontest_no_result_is_sent_once_the_lease_is_lost
(steps: list[Step], lost_at: float)
tests/lib/environments/test_worker.py:390
Methodtest_no_retry_on_non_401_error
Non-401 errors from the provider are not retried.
tests/lib/test_credentials.py:1750
Methodtest_no_spans_without_a_tracer
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:2130
Methodtest_no_spurious_env_shadow_warning
( self, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture )
tests/lib/test_google_cloud.py:391
Methodtest_no_stop_sequences_set_no_attribute
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6748
Methodtest_no_supported_mime_raises
(self)
tests/lib/tools/test_mcp_tool.py:238
Functiontest_no_sync_follows_a_call_that_is_cancelled_when_the_lease_ends
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:503
Methodtest_no_url_query_when_no_defined_parameter_is_sent
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3441
Methodtest_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
Methodtest_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
Methodtest_no_x_api_key_with_azure_ad_token_provider
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_azure.py:246
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_non_bearer_token_type_rejected
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1417
Methodtest_non_json_response_does_not_retain_assertion
(self)
tests/lib/test_credentials.py:5397
Methodtest_non_str_token_does_not_crash_repr
(self)
tests/lib/test_credentials.py:5281
Methodtest_non_streaming
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:59
Methodtest_non_streaming
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:116
Methodtest_non_streaming_runner_does_not_add_the_structured_outputs_beta
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:148
Methodtest_none_path_param_is_rejected
(self, client: Anthropic)
tests/test_client.py:1311
Methodtest_none_path_param_is_rejected
(self, async_client: AsyncAnthropic)
tests/test_client.py:3078
Functiontest_not_found_is_raised_when_the_session_is_deleted_with_no_event
()
tests/lib/tools/test_session_runner.py:1662
Functiontest_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
Methodtest_nothing_is_logged_for_non_streaming_retries
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback.py:1097
Functiontest_nothing_is_read_or_run_until_a_heartbeat_succeeds
(fault: Fault)
tests/lib/environments/test_worker.py:179
Functiontest_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
Functiontest_nothing_runs_from_a_partly_read_history
()
tests/lib/tools/test_session_runner.py:1449
← previousnext →9,201–9,300 of 14,068, ranked by callers