MCPcopy Create free account

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

Functions13,873 in github.com/anthropics/anthropic-sdk-python

Functiontest_deprecated_alias
()
tests/test_models.py:505
Methodtest_deprecated_model_warning
(self, client: Anthropic)
tests/api_resources/test_messages.py:321
Methodtest_deprecated_model_warning
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:763
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:332
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:649
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:579
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:833
Functiontest_derived_member_sets
()
tests/lib/tools/toolsets/test_registry.py:93
Methodtest_derived_url_without_workspace_constructs
(self)
tests/lib/test_google_cloud.py:297
Methodtest_derived_url_without_workspace_constructs
(self)
tests/lib/test_google_cloud.py:1486
Methodtest_derives_base_url_from_region
(self)
tests/lib/test_bedrock_mantle.py:80
Methodtest_derives_from_region
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:386
Methodtest_detection
(self, shape: Callable[..., Any])
tests/lib/test_credentials.py:3910
Functiontest_dict_of_union
()
tests/test_models.py:395
Methodtest_different_region
(self)
tests/lib/test_bedrock_mantle.py:87
Methodtest_different_service_name
Mantle uses a different service name for SigV4 signing.
tests/lib/test_aws_auth.py:455
Functiontest_directly_nested_model
()
tests/test_models.py:40
Functiontest_disabled_mode_never_deletes_but_still_syncs
( tmp_path: Path, clock: Clock, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_delete_discipline.py:87
Methodtest_disabled_open_telemetry_sends_no_trace_context
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4279
Methodtest_disabled_spans_call_nothing_of_opentelemetry
( self, sync: bool, how: str, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:8164
Methodtest_disabled_spans_leave_the_body_of_the_response_alone
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2449
Functiontest_disabled_step_fails_the_run_unless_it_may_be_skipped
()
tests/lib/tools/test_fake_sessions_api.py:349
Methodtest_disabled_traces_have_no_spans
( self, traces: Any, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3853
Functiontest_discriminated_union_case
()
tests/test_models.py:976
Functiontest_discriminated_unions_invalid_data
()
tests/test_models.py:691
Functiontest_discriminated_unions_invalid_data_nested_unions
()
tests/test_models.py:747
Functiontest_discriminated_unions_invalid_data_uses_cache
()
tests/test_models.py:833
Functiontest_discriminated_unions_overlapping_discriminators_invalid_data
()
tests/test_models.py:813
Functiontest_discriminated_unions_pep604_uses_cache
()
tests/test_models.py:870
Functiontest_discriminated_unions_unknown_variant
()
tests/test_models.py:724
Functiontest_discriminated_unions_with_aliases_invalid_data
()
tests/test_models.py:780
Functiontest_dispose_keeps_a_folder_that_fails_the_marker_check
Sync left the folder as found after a failed marker check; teardown must not then delete the files sync refused to touch.
tests/lib/tools/memory_sync/test_folder_trust.py:213
Functiontest_dispose_never_raises_when_a_store_root_is_replaced_by_a_file
The worker calls dispose() from its teardown: a store whose folder something replaced with a regular file must log and be skipped, not raise o
tests/lib/tools/memory_sync/test_folder_trust.py:230
Functiontest_dispose_tolerates_an_already_deleted_folder
(tmp_path: Path)
tests/lib/tools/memory_sync/test_folder_trust.py:203
Methodtest_docstring_parsing_simple
Test that simple docstrings still work correctly.
tests/lib/tools/test_functions.py:418
Methodtest_docstring_parsing_with_parameters
(self, docstring: str)
tests/lib/tools/test_functions.py:331
Functiontest_does_not_coerce_int
()
tests/test_models.py:477
Functiontest_does_not_count_down_while_the_session_is_not_idle
(steps: list[Step])
tests/lib/tools/test_session_runner.py:1771
Methodtest_does_not_duplicate_a_beta_already_on_the_request
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:673
Functiontest_does_not_mutate_parent_client
Building the sub-client must not touch the parent's auth state. Without this, a long-lived parent client could be silently re-credentialed ev
tests/lib/test_scoped_client.py:56
Functiontest_does_not_mutate_the_wire_delta_when_inserting_at_a_new_index
()
tests/lib/sessions/test_accumulate.py:134
Functiontest_does_not_run_a_call_that_confirm_declines_or_the_toolsets_calls_after_it
( setup: SetupFactory, family: str )
tests/lib/tools/test_runner_eager_toolsets.py:154
Functiontest_does_not_run_a_call_that_has_not_started_when_the_caller_leaves_the_loop
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:282
Functiontest_does_not_run_a_held_call_once_one_of_its_toolsets_calls_has_failed
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:299
Methodtest_does_not_tag_requests_it_passes_through
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:722
Functiontest_does_not_wait_for_the_reply_to_end
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:312
Methodtest_dot_segment_in_base_url_is_rejected
( self, name: str, dot: str, deferred: bool, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch
tests/lib/test_google_cloud.py:165
Methodtest_dot_segment_in_base_url_is_rejected
( self, name: str, dot: str, deferred: bool, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch
tests/lib/test_google_cloud.py:1354
Methodtest_dot_segment_in_organization_base_url_is_rejected
( self, project: str, location: str, respx_mock: MockRouter )
tests/lib/test_google_cloud.py:183
Methodtest_dot_segment_in_organization_base_url_is_rejected
( self, project: str, location: str, respx_mock: MockRouter )
tests/lib/test_google_cloud.py:1372
Functiontest_dot_segment_model_is_rejected
( model: str, stream: bool, beta: bool, sync: bool, respx_mock: MockRouter )
tests/lib/test_bedrock.py:260
Methodtest_dot_segment_project_id_or_region_is_rejected
( self, project_id: str, region: str, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:444
Methodtest_dot_segment_project_id_or_region_is_rejected
( self, project_id: str, region: str, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:970
Functiontest_dot_segment_rejected
(template: str, kwargs: dict[str, Any])
tests/test_utils/test_path.py:96
Functiontest_double_nested_union
()
tests/test_models.py:415
Functiontest_download_paths_reach_the_model_only_through_an_exposing_file_policy
()
tests/lib/tools/toolsets/test_enforcement.py:276
Functiontest_download_paths_reach_the_model_only_through_an_exposing_file_policy_on_the_async_class
()
tests/lib/tools/toolsets/test_enforcement.py:549
Functiontest_download_paths_stay_hidden_on_the_async_class_without_a_file_policy
()
tests/lib/tools/toolsets/test_pipeline.py:1357
Functiontest_download_replaces_a_directory_that_is_already_there
( tmp_path: Path, async_client: AsyncAnthropic, respx_mock: MockRouter, monkeypatch: pytest.Mo
tests/lib/tools/test_skills.py:543
Functiontest_download_retrieves_by_configured_version_and_downloads_by_returned_id
(tmp_path: Path)
tests/lib/tools/test_skills.py:440
Functiontest_driver_tool_error_is_the_error_text_and_any_other_exception_is_reported_too
()
tests/lib/tools/toolsets/test_pipeline.py:514
Functiontest_driver_values_are_validated_where_the_driver_builds_them_and_forwarded_as_built
()
tests/lib/tools/toolsets/test_pipeline.py:1137
Functiontest_driver_values_reach_the_block_as_built_on_the_async_class
()
tests/lib/tools/toolsets/test_pipeline.py:1490
Functiontest_dropped_decoder_lets_go_of_its_iterator_at_once
(sync: bool)
tests/decoders/test_jsonl.py:66
Methodtest_dropped_response_is_closed_at_once
(self, client: Anthropic, held: Held[Any, Any])
tests/test_streaming.py:218
Methodtest_dropped_response_is_closed_at_once
( self, async_client: AsyncAnthropic, held: AsyncHeld[Any, Any] )
tests/test_streaming.py:264
Methodtest_dropped_stream
(self, spans: Spans, respx_mock: MockRouter, reads: int)
tests/test_open_telemetry.py:1644
Methodtest_duck_typed_token_is_rejected
(self)
tests/lib/test_credentials.py:3281
Functiontest_duplicate_has_the_class_and_message_of_the_error
( duplicate: Callable[[AnthropicError], AnthropicError], error: AnthropicError )
tests/test_exceptions.py:58
Functiontest_duplicate_of_a_raised_status_error_keeps_its_attributes
( client: Anthropic, duplicate: Callable[[APIStatusError], APIStatusError] )
tests/test_exceptions.py:68
Functiontest_each_heartbeat_expects_the_time_that_the_one_before_returned
()
tests/lib/environments/test_worker.py:243
Methodtest_each_hop_patches_the_original_params_not_the_previous_hop
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:389
Functiontest_each_item_has_a_span_that_is_current_while_it_is_handled
()
tests/lib/environments/test_worker.py:1001
Functiontest_each_item_has_a_span_that_starts_with_its_ids
(sync: bool)
tests/lib/environments/test_poller.py:310
Methodtest_each_kind_of_page
(self, call: ResourceList, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7684
Functiontest_each_poller_has_a_worker_id_of_its_own_by_default
(sync: bool)
tests/lib/environments/test_poller.py:111
Functiontest_each_read_has_the_headers_that_the_runner_has_when_it_begins
( closed: float, page_size: int, sent: list[str | None] )
tests/lib/tools/test_session_runner.py:2160
Functiontest_each_request_carries_the_trace_context
(new_client: NewClient, propagator: CountingPropagator)
tests/test_tracing.py:200
Methodtest_each_resource
(self, call: ResourceCall, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7648
Methodtest_each_resource_failed
(self, call: ResourceCall, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7670
Functiontest_edit_binary_raises_tool_error
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:596
Functiontest_edit_custom_max_bytes_allows_above_default
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:425
Functiontest_edit_custom_max_bytes_rejects_below_cap
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:416
Functiontest_edit_normal_within_limit
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:408
Functiontest_edit_of_a_file_that_a_sync_uploaded_before_it_was_interrupted_is_saved
(notes: Path, ending: Step)
tests/lib/tools/memory_sync/test_e2e_memory.py:166
Functiontest_edit_preserves_crlf_line_endings
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:275
Functiontest_edit_rejects_directory
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:400
Functiontest_edit_rejects_directory_even_when_uncapped
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:440
Functiontest_edit_rejects_oversized_file
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:391
Functiontest_edit_takes_a_file_that_is_too_large_to_read_whole
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:291
Functiontest_edit_uncapped_allows_oversized
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:433
Functiontest_edit_uniqueness
(tmp_path: Path, description: str, args: dict[str, object], want_error: bool)
tests/lib/tools/test_agent_toolset.py:656
Functiontest_edits_flow_both_ways_and_the_server_wins_conflicts
( tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_memory_sync.py:42
Methodtest_elapsed_of_a_response_whose_body_ends_the_span
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1619
Functiontest_elsewhere_a_device_named_file_is_an_ordinary_file
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/toolsets/test_security.py:227
Methodtest_embedded_resource_image
(self)
tests/lib/tools/test_mcp_tool.py:131
Methodtest_embedded_resource_image_requires_blob
(self)
tests/lib/tools/test_mcp_tool.py:160
Methodtest_embedded_resource_no_mime_defaults_to_text
(self)
tests/lib/tools/test_mcp_tool.py:148
Methodtest_embedded_resource_pdf
(self)
tests/lib/tools/test_mcp_tool.py:123
Methodtest_embedded_resource_pdf_requires_blob
(self)
tests/lib/tools/test_mcp_tool.py:165
← previousnext →6,701–6,800 of 13,873, ranked by callers