MCPcopy Create free account

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

Functions9,455 in github.com/anthropics/anthropic-sdk-python

Methodtest_method_upload_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/test_files.py:238
Methodtest_method_upload_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_files.py:488
Methodtest_method_validate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_keys.py:240
Methodtest_method_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_keys.py:500
Methodtest_method_validate
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:238
Methodtest_method_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:496
Methodtest_method_validate_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:158
Methodtest_method_validate_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:378
Methodtest_method_validate_archive_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:165
Methodtest_method_validate_archive_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:385
Methodtest_method_validate_repository
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:197
Methodtest_method_validate_repository
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:417
Methodtest_method_validate_repository_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:204
Methodtest_method_validate_repository_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:424
Methodtest_mid_loop_refusal_ending_in_thinking_strips_the_trailing_thinking_block
( self, respx_mock: MockRouter )
tests/lib/test_refusal_fallback_streaming.py:1468
Methodtest_middleware_error_is_not_retried
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:823
Methodtest_middleware_error_is_not_retried
( self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_middleware.py:1803
Methodtest_middleware_exception_propagates
(self, respx_mock: MockRouter)
tests/test_middleware.py:1307
Methodtest_middleware_exception_propagates
(self, respx_mock: MockRouter)
tests/test_middleware.py:1733
Methodtest_middleware_iterator_argument_runs_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1193
Methodtest_middleware_iterator_argument_runs_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1715
Methodtest_middleware_ordering
(self, respx_mock: MockRouter)
tests/test_middleware.py:672
Methodtest_middleware_ordering
(self, respx_mock: MockRouter)
tests/test_middleware.py:1432
Methodtest_middleware_ordering_across_sequential_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:1170
Methodtest_middleware_ordering_across_sequential_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:1692
Methodtest_middleware_runs_per_attempt
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:794
Methodtest_middleware_runs_per_attempt
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:1748
Methodtest_middleware_sees_prepared_body
(self, respx_mock: MockRouter, tmp_path: Path)
tests/test_middleware.py:625
Methodtest_middleware_sees_prepared_body
(self, respx_mock: MockRouter, tmp_path: Path)
tests/test_middleware.py:1385
Methodtest_middleware_sees_request_and_returns_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:592
Methodtest_middleware_sees_request_and_returns_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1356
Methodtest_missing_access_token_does_not_retain_refresh_token
A credentials file that has a refresh_token but no access_token raises before any exchange; the on-disk dict must not survive raw in f
tests/lib/test_credentials.py:4643
Methodtest_missing_authentication
(self)
tests/lib/test_credentials.py:3171
Methodtest_missing_config_file
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:767
Methodtest_missing_credentials_error
Test error raised when no credentials are provided.
tests/lib/test_azure.py:55
Functiontest_missing_kwarg_raises_key_error
()
tests/test_utils/test_path.py:63
Methodtest_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:97
Methodtest_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:1086
Methodtest_missing_required_fields
(self)
tests/lib/test_credentials.py:3175
Methodtest_missing_resource_error
Test error raised when neither resource nor base_url is provided.
tests/lib/test_azure.py:62
Methodtest_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:55
Methodtest_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:580
Methodtest_models_not_available
(self)
tests/lib/test_bedrock_mantle.py:140
Functiontest_models_with_unresolved_forward_references
(send: Send)
tests/test_prepare.py:480
Functiontest_multi_byte_character_multiple_chunks
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:200
Functiontest_multi_byte_character_multiple_chunks
( sync: bool, )
tests/decoders/test_jsonl.py:46
Methodtest_multipart_content_type_case_insensitive
(self, client: Anthropic)
tests/test_client.py:527
Methodtest_multipart_content_type_case_insensitive
(self, async_client: AsyncAnthropic)
tests/test_client.py:1826
Methodtest_multipart_media_type_is_matched_case_insensitively
(self)
tests/test_header_case_sensitivity.py:287
Methodtest_multipart_repeating_array
(self, client: Anthropic)
tests/test_client.py:858
Methodtest_multipart_repeating_array
(self, async_client: AsyncAnthropic)
tests/test_client.py:2159
Functiontest_multiple_data_lines
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:151
Functiontest_multiple_data_lines_with_empty_line
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:112
Functiontest_multiple_events
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:66
Functiontest_multiple_events_with_data
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:88
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:135
Functiontest_nested_discriminated_union
()
tests/test_models.py:974
Functiontest_nested_dotted
(method: str)
tests/test_qs.py:37
Functiontest_nested_union_invalid_data
()
tests/test_models.py:283
Functiontest_nested_union_multiple_variants
()
tests/test_models.py:255
Functiontest_nested_union_of_mixed_types
()
tests/test_models.py:237
Functiontest_nested_union_of_models
()
tests/test_models.py:222
Methodtest_nesting_different_states_restores_the_outer_pin
(self)
tests/lib/test_refusal_fallback.py:767
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:675
Functiontest_new_event_resets_idle_grace
()
tests/lib/tools/test_session_runner.py:1275
Functiontest_new_index_inserts_the_fragment_as_a_fresh_block
()
tests/lib/sessions/test_accumulate.py:72
Functiontest_new_lines_in_json
( sync: bool, )
tests/decoders/test_jsonl.py:34
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:1923
Methodtest_next_force_preserved_on_provider_failure
(self)
tests/lib/test_credentials.py:3603
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:1946
Methodtest_next_force_preserved_when_provider_returns_non_token
(self)
tests/lib/test_credentials.py:3619
Functiontest_next_sequential_index_inserts
()
tests/lib/sessions/test_accumulate.py:107
Functiontest_no_api_key_leak
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:842
Functiontest_no_api_key_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:862
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:880
Functiontest_no_auth_token_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:899
Functiontest_no_environment_key_threads_none_to_scoped_client
Without an environment key the runner still asks `_scoped_client` for a request client — passing `None` so the factory returns the parent client
tests/lib/tools/test_session_runner.py:1621
Methodtest_no_expiry_never_refreshes
(self)
tests/lib/test_credentials.py:1579
Methodtest_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:1322
Methodtest_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:1859
Functiontest_no_numeric_bound_is_applied_beyond_the_generated_types
()
tests/lib/tools/toolsets/test_computer_pipeline.py:194
Methodtest_no_retry_on_non_401_error
Non-401 errors from the provider are not retried.
tests/lib/test_credentials.py:1685
Methodtest_no_spurious_env_shadow_warning
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:202
Methodtest_no_supported_mime_raises
(self)
tests/lib/tools/test_mcp_tool.py:238
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:141
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:167
Methodtest_no_x_api_key_with_azure_ad_token_provider
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_azure.py:189
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:1326
← previousnext →6,201–6,300 of 9,455, ranked by callers