MCPcopy Create free account

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

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

Functiontest_a_store_that_landed_is_disposed_when_a_later_one_fails
download() raises on the first store it cannot materialise, but the ones that already landed are tracked — so the caller's dispose still reaps the
tests/lib/tools/memory_sync/test_memory_sync.py:625
Functiontest_a_streamed_member_call_is_routed_to_the_toolset
( client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter, navigate: BetaFunct
tests/lib/tools/toolsets/test_runner.py:208
Functiontest_a_swapped_folder_neither_deletes_nor_uploads_ever
A folder carrying another store's marker is foreign: the pass must not adopt it — no deletes, no uploads, no restamp — on this pass or any later
tests/lib/tools/memory_sync/test_folder_trust.py:124
Functiontest_a_symlinked_read_only_root_still_refuses_writes
allowed_roots entries resolve at check time, so read_only_roots must too — the same symlinked path must not grant access on one side while its
tests/lib/tools/test_agent_toolset.py:987
Functiontest_a_sync_member_or_browser_state_on_the_async_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_pipeline.py:1094
Functiontest_a_sync_that_pulls_nothing_fetches_no_content
(tmp_path: Path)
tests/lib/tools/memory_sync/test_two_pass.py:33
Functiontest_a_tab_id_on_a_member_that_declares_none_names_no_tab
( flavour: type[FakeBrowser] | type[AsyncFakeBrowser], )
tests/lib/tools/toolsets/test_pipeline.py:390
Functiontest_a_tab_opened_for_a_tab_the_report_does_not_list_is_dropped_and_a_repeated_one_sent_once
()
tests/lib/tools/toolsets/test_pipeline.py:681
Functiontest_a_template_value_the_model_wrote_stays_data
()
tests/lib/tools/toolsets/test_computer_pipeline.py:138
Methodtest_a_terminal_refusal_with_no_entries_left_is_emitted_with_the_full_iteration_chain
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:832
Methodtest_a_token_less_pre_stream_refusal_still_retries
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:1056
Methodtest_a_token_less_refusal_on_the_final_hop_is_still_logged
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:855
Functiontest_a_tool_removed_in_the_history_stays_removed_after_compaction_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:2977
Functiontest_a_tool_removed_in_the_history_stays_removed_after_compaction_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:2941
Functiontest_a_tool_that_returns_none_posts_no_output_and_the_loop_goes_on
()
tests/lib/tools/test_session_runner.py:343
Functiontest_a_tool_that_returns_none_sends_a_null_tool_result
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter, cap
tests/lib/tools/test_runners.py:2387
Functiontest_a_tools_list_is_kept_so_editing_it_in_place_reaches_the_next_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, with_toolset: boo
tests/lib/tools/toolsets/test_browser_runner.py:383
Functiontest_a_toolset_call_does_not_run_a_function_tool_of_the_same_name
(setup: SetupFactory, sync: bool)
tests/lib/tools/test_runner_eager_toolsets.py:47
Functiontest_a_toolset_call_that_the_caller_defers_holds_its_toolsets_later_calls_and_no_other_call
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:200
Functiontest_a_toolset_in_set_messages_params_is_sent_as_its_wire_entry
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:144
Functiontest_a_toolset_instance_is_a_tool_like
()
tests/lib/tools/toolsets/test_surface.py:179
Functiontest_a_toolset_instance_is_a_tool_like
()
tests/lib/tools/toolsets/test_computer_surface.py:93
Functiontest_a_toolset_instance_stands_in_tools_for_create_and_count_tokens
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_computer_runner.py:302
Functiontest_a_toolset_instance_stands_in_tools_for_create_and_count_tokens
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:518
Functiontest_a_toolset_of_the_other_flavour_is_refused_when_the_runner_is_built
( client: Anthropic, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_browser_runner.py:123
Functiontest_a_toolset_taken_out_of_the_list_in_place_is_not_sent_with_the_next_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:440
Functiontest_a_toolset_that_does_not_extend_the_sdks_classes_starts_its_calls_early_too
( setup: SetupFactory, sync: bool )
tests/lib/tools/test_runner_eager_toolsets.py:390
Functiontest_a_toolset_that_serves_keyboard_input_will_not_build_without_a_confirm
(member: str, twin: bool)
tests/lib/tools/toolsets/test_computer_interface.py:256
Functiontest_a_toolset_with_all_three_keyboard_members_disabled_needs_no_confirm
(Desktop: Any)
tests/lib/tools/toolsets/test_computer_interface.py:282
Functiontest_a_toolset_with_no_member_enabled_sends_every_member_disabled
()
tests/lib/tools/toolsets/test_computer_interface.py:58
Functiontest_a_toolset_with_the_keyboard_off_runs_its_calls_with_no_confirm
()
tests/lib/tools/toolsets/test_computer_pipeline.py:411
Functiontest_a_url_or_paths_on_another_member_is_not_policy_checked
( flavour: type[FakeBrowser] | type[AsyncFakeBrowser], )
tests/lib/tools/toolsets/test_pipeline.py:417
Methodtest_absolute_request_url
(self, client: Anthropic)
tests/test_client.py:1075
Methodtest_absolute_request_url
(self, client: AsyncAnthropic)
tests/test_client.py:2386
Methodtest_access_key_alone_returns_true
(self)
tests/lib/test_aws_auth.py:63
Methodtest_access_key_only_raises
(self)
tests/lib/test_aws_auth.py:28
Methodtest_access_key_only_raises
(self)
tests/lib/test_bedrock_mantle.py:221
Functiontest_adc_path
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:358
Functiontest_adc_without_project_raises_on_first_request
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:597
Functiontest_adc_without_project_raises_on_first_request_async
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:682
Functiontest_add_tools_refuses_a_raw_definition_of_the_runners_toolset_and_queues_nothing
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, definition_type:
tests/lib/tools/toolsets/test_browser_runner.py:218
Functiontest_add_tools_refuses_a_tool_named_like_the_runners_toolset_and_queues_nothing
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, added: str )
tests/lib/tools/toolsets/test_browser_runner.py:238
Functiontest_add_tools_refuses_a_toolset_and_queues_nothing
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:164
Functiontest_add_tools_replaces_a_tool_of_the_same_name_straight_away
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1887
Functiontest_add_tools_sends_a_raw_toolset_definition_of_another_family
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:265
Functiontest_add_tools_sends_the_definition_with_the_next_request
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1704
Methodtest_advisory_caller_skips_when_refresh_in_flight
A caller in the advisory window does NOT start a second refresh and does NOT wait on a running one — it just returns the cached token.
tests/lib/test_credentials.py:1809
Methodtest_advisory_failure_serves_cached_and_mandatory_failure_raises
(self)
tests/lib/test_credentials.py:3759
Methodtest_advisory_refresh_backoff_after_failure
PY-07: after an advisory refresh failure, subsequent advisory callers within ADVISORY_REFRESH_BACKOFF_SECONDS reuse the cached token i
tests/lib/test_credentials.py:2043
Methodtest_advisory_refresh_failure_serves_stale
(self, caplog: pytest.LogCaptureFixture)
tests/lib/test_credentials.py:1607
Methodtest_advisory_refresh_success
(self)
tests/lib/test_credentials.py:1598
Functiontest_agent_message_accepts_none_snapshot
()
tests/lib/sessions/test_accumulate.py:153
Functiontest_agent_message_replaces_the_preview_with_a_copy_of_the_final_event
()
tests/lib/sessions/test_accumulate.py:137
Functiontest_agent_toolset_filter_and_extend
The list returned by beta_agent_toolset_20260401 is a plain list that callers can filter or extend.
tests/lib/tools/test_agent_toolset.py:191
Functiontest_agent_toolset_names_and_type
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:184
Functiontest_aiter_work_backs_off_on_transient_error
(status: int)
tests/lib/environments/test_poller_method.py:429
Functiontest_aiter_work_calls_stop_when_body_raises
()
tests/lib/environments/test_poller_method.py:416
Functiontest_aiter_work_drain_auto_stop_false_dispatch_shape
()
tests/lib/environments/test_poller_method.py:467
Functiontest_aiter_work_logs_idle_polling
(monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture)
tests/lib/environments/test_poller_method.py:384
Functiontest_aiter_work_propagates_non_api_error_instead_of_retrying
Async counterpart: a non-API/non-transport error propagates instead of being retried forever.
tests/lib/environments/test_poller_method.py:455
Functiontest_aiter_work_stop_conflict_is_silent
(caplog: pytest.LogCaptureFixture)
tests/lib/environments/test_poller_method.py:439
Functiontest_aiter_work_threads_extra_headers_into_force_stop
()
tests/lib/environments/test_poller_method.py:537
Functiontest_aiter_work_threads_extra_headers_into_poll_ack_stop
()
tests/lib/environments/test_poller_method.py:522
Functiontest_aiter_work_yields_acks_and_stops_one_item
()
tests/lib/environments/test_poller_method.py:400
Functiontest_aliases
()
tests/test_models.py:171
Functiontest_all_blank_upload_roots_report_no_configured_roots
()
tests/lib/tools/toolsets/test_security.py:258
Methodtest_all_none_output_config_subfields_on_a_missing_original_add_nothing
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:474
Functiontest_allof
()
tests/lib/_parse/test_transform.py:76
Functiontest_allow_after_end_turn_resumes_idle_stop
The `allow` twin of the test above: the released call runs and posts its result, nothing else arrives, and the runner must still stop on its own.
tests/lib/tools/test_session_runner.py:1140
Methodtest_an_absent_output_config_keeps_the_original
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:426
Functiontest_an_approval_covers_the_last_report_and_the_page_is_not_read_again
()
tests/lib/tools/toolsets/test_confirm.py:164
Functiontest_an_async_browser_state_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_pipeline.py:955
Functiontest_an_async_confirm_that_raises_refuses_the_call_and_a_tool_error_is_relayed
()
tests/lib/tools/toolsets/test_confirm.py:283
Functiontest_an_async_execute_override_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_computer_pipeline.py:429
Functiontest_an_async_execute_override_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_pipeline.py:990
Functiontest_an_async_execute_override_serves_every_member_and_turns_members_off_with_configs
()
tests/lib/tools/toolsets/test_interface.py:358
Functiontest_an_async_file_policy_hides_the_path_on_the_async_class_too
()
tests/lib/tools/toolsets/test_pipeline.py:296
Functiontest_an_async_member_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_interface.py:241
Functiontest_an_async_member_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_computer_interface.py:148
Functiontest_an_async_new_tab_whose_tab_is_not_the_active_one_fails_too
()
tests/lib/tools/toolsets/test_pipeline.py:776
Functiontest_an_async_pure_action_may_return_one_line_too
()
tests/lib/tools/toolsets/test_pipeline.py:140
Functiontest_an_async_unexpected_exception_is_logged_with_folded_names_and_answered_with_bounded_text
( caplog: pytest.LogCaptureFixture, )
tests/lib/tools/toolsets/test_runnable.py:237
Functiontest_an_edit_made_after_a_lost_upload_response_still_reaches_the_server
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:59
Functiontest_an_edit_written_mid_sync_still_survives_a_remote_delete
The directory scan saw the file unedited; an edit is written while the server listing is in flight. The removal must re-read the file instead
tests/lib/tools/memory_sync/test_keep_only_copy.py:129
Functiontest_an_edited_file_survives_a_remote_delete_and_is_re_created
( tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_keep_only_copy.py:32
Methodtest_an_emitted_start_leaves_the_delta_untouched
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1161
Functiontest_an_emptied_folder_issues_no_deletes_and_is_repopulated
( tmp_path: Path, caplog: pytest.LogCaptureFixture, clock: Clock )
tests/lib/tools/memory_sync/test_folder_trust.py:71
Functiontest_an_emptied_folder_with_the_marker_left_behind_issues_no_deletes
`rm <mount>/*`: shell globs skip dotfiles, so the marker survives the wipe — an intact marker alone must not clear a folder whose every memory
tests/lib/tools/memory_sync/test_folder_trust.py:95
Methodtest_an_empty_chain_disables_the_middleware
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:539
Methodtest_an_empty_chain_passes_the_stream_through_untouched
(self, caplog: pytest.LogCaptureFixture)
tests/lib/test_refusal_fallback_streaming.py:868
Functiontest_an_empty_text_block_is_dropped_from_error_content_so_the_placeholder_applies
()
tests/lib/tools/toolsets/test_runnable.py:135
Functiontest_an_enabled_the_types_do_not_allow_fails_closed_if_it_gets_past_them
()
tests/lib/tools/toolsets/test_pipeline.py:447
Methodtest_an_entry_that_sets_thinking_overrides_between_tools
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:349
Functiontest_an_execute_only_subclass_serves_every_member_and_turns_members_off_with_configs
()
tests/lib/tools/toolsets/test_pipeline.py:467
Functiontest_an_execute_only_subclass_serves_every_member_and_turns_members_off_with_configs
()
tests/lib/tools/toolsets/test_interface.py:118
Functiontest_an_execute_only_subclass_serves_every_member_and_turns_members_off_with_configs
()
tests/lib/tools/toolsets/test_computer_interface.py:93
Functiontest_an_execute_override_wraps_dispatch_and_the_pipeline_wraps_the_override
()
tests/lib/tools/toolsets/test_pipeline.py:968
Functiontest_an_execute_override_wraps_dispatch_on_the_async_class
()
tests/lib/tools/toolsets/test_pipeline.py:1309
Methodtest_an_explicit_none_entry_field_unsets_it_on_the_retry
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:319
Methodtest_an_explicit_none_output_config_unsets_it_whole
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:413
← previousnext →4,001–4,100 of 9,455, ranked by callers