MCPcopy Create free account

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

Functions12,274 in github.com/anthropics/anthropic-sdk-python

Methodtest_method_upload_with_all_params
(self, client: Anthropic)
tests/api_resources/test_files.py:225
Methodtest_method_upload_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/test_files.py:461
Methodtest_method_upload_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/test_files.py:250
Methodtest_method_upload_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_files.py:515
Methodtest_method_validate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_keys.py:262
Methodtest_method_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_keys.py:547
Methodtest_method_validate
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:239
Methodtest_method_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:498
Methodtest_method_validate_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:173
Methodtest_method_validate_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:416
Methodtest_method_validate_archive_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:181
Methodtest_method_validate_archive_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:424
Methodtest_method_validate_repository
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:216
Methodtest_method_validate_repository
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:459
Methodtest_method_validate_repository_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:224
Methodtest_method_validate_repository_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:467
Methodtest_methods_have_no_keyword_for_it
(self, spans: Spans)
tests/test_open_telemetry.py:4426
Methodtest_mid_loop_refusal_ending_in_thinking_strips_the_trailing_thinking_block
( self, respx_mock: MockRouter )
tests/lib/test_refusal_fallback_streaming.py:1499
Methodtest_middleware_error_is_not_retried
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:824
Methodtest_middleware_error_is_not_retried
( self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_middleware.py:1800
Methodtest_middleware_exception_propagates
(self, respx_mock: MockRouter)
tests/test_middleware.py:1306
Methodtest_middleware_exception_propagates
(self, respx_mock: MockRouter)
tests/test_middleware.py:1730
Methodtest_middleware_iterator_argument_runs_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1192
Methodtest_middleware_iterator_argument_runs_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1712
Methodtest_middleware_ordering
(self, respx_mock: MockRouter)
tests/test_middleware.py:673
Methodtest_middleware_ordering
(self, respx_mock: MockRouter)
tests/test_middleware.py:1431
Methodtest_middleware_ordering_across_sequential_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:1169
Methodtest_middleware_ordering_across_sequential_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:1689
Methodtest_middleware_runs_per_attempt
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:795
Methodtest_middleware_runs_per_attempt
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:1745
Methodtest_middleware_sees_prepared_body
(self, respx_mock: MockRouter, tmp_path: Path)
tests/test_middleware.py:626
Methodtest_middleware_sees_prepared_body
(self, respx_mock: MockRouter, tmp_path: Path)
tests/test_middleware.py:1384
Methodtest_middleware_sees_request_and_returns_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:593
Methodtest_middleware_sees_request_and_returns_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1355
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:5080
Methodtest_missing_authentication
(self)
tests/lib/test_credentials.py:3293
Methodtest_missing_config_file
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:830
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:346
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:3297
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:1140
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:296
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:101
Functiontest_multi_byte_character_multiple_chunks
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:310
Functiontest_multi_byte_character_multiple_chunks
( sync: bool, )
tests/decoders/test_jsonl.py:48
Methodtest_multipart_content_type_case_insensitive
(self, client: Anthropic)
tests/test_client.py:636
Methodtest_multipart_content_type_case_insensitive
(self, async_client: AsyncAnthropic)
tests/test_client.py:2072
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:967
Methodtest_multipart_repeating_array
(self, async_client: AsyncAnthropic)
tests/test_client.py:2405
Functiontest_multiple_data_lines
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:165
Functiontest_multiple_data_lines_with_empty_line
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:126
Functiontest_multiple_events
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:80
Functiontest_multiple_events_with_data
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:102
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:989
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:675
Functiontest_new_event_resets_idle_grace
()
tests/lib/tools/test_session_runner.py:1301
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:36
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:1983
Methodtest_next_force_preserved_on_provider_failure
(self)
tests/lib/test_credentials.py:3725
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:2006
Methodtest_next_force_preserved_when_provider_returns_non_token
(self)
tests/lib/test_credentials.py:3741
Methodtest_next_send_continues_the_thread_with_only_the_new_messages
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:126
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: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
Methodtest_no_compaction_tokens_without_a_compaction
( self, iterations: list[dict[str, Any]] | None, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2037
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:2056
← previousnext →8,001–8,100 of 12,274, ranked by callers