MCPcopy Create free account

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

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

Functiontest_item_is_served_without_memory_when_sync_is_disabled
(notes: Path, secret: str | None)
tests/lib/tools/memory_sync/test_e2e_memory.py:709
Functiontest_item_is_stopped_and_polling_continues_after_a_heartbeat_raises_an_error_that_is_not_an_api_failure
()
tests/lib/environments/test_worker.py:151
Functiontest_item_is_stopped_when_its_session_ends_or_the_worker_is_cancelled
(ending: Step)
tests/lib/environments/test_worker.py:106
Functiontest_item_is_stopped_when_the_loop_exits_unless_auto_stop_is_off
( sync: bool, options: dict[str, Any], state: str )
tests/lib/environments/test_poller.py:196
Functiontest_item_of_a_terminated_session_is_stopped_without_setup
(tmp_path: Path)
tests/lib/environments/test_worker.py:595
Functiontest_item_that_fails_is_stopped_and_polling_continues
(steps: list[Step], options: dict[str, Any])
tests/lib/environments/test_worker.py:130
Functiontest_item_that_is_never_served_is_stopped_only_if_the_worker_may_hold_it
( steps: list[Step], options: dict[str, Any], kinds: str )
tests/lib/environments/test_worker.py:199
Functiontest_item_that_is_not_for_a_session_is_stopped_and_polling_continues
(data: object)
tests/lib/environments/test_worker.py:139
Functiontest_item_that_is_not_for_a_session_is_yielded
(sync: bool)
tests/lib/environments/test_poller.py:151
Functiontest_item_uses_the_environment_key_when_its_secret_has_no_token
(secret: object)
tests/lib/environments/test_worker.py:735
Functiontest_item_whose_ack_fails_is_not_yielded_or_stopped
(sync: bool, fault: Fault, applied: bool)
tests/lib/environments/test_poller.py:132
Functiontest_item_without_data_is_yielded
(sync: bool)
tests/lib/environments/test_poller.py:161
Functiontest_items_are_acked_and_then_yielded_in_order
(sync: bool)
tests/lib/environments/test_poller.py:34
Functiontest_iterable_construction
(data: Iterable[int], expected_validated: Iterable[int])
tests/test_models.py:1100
Functiontest_iterable_construction_str_falls_back_to_list
()
tests/test_models.py:1116
Methodtest_iterables_and_mappings
(self)
tests/test_utils/test_json.py:38
Functiontest_iteration_ends_with_no_error_when_the_session_ends
(end: Step, ended: float)
tests/lib/tools/test_session_runner.py:1655
Methodtest_json_string_echo_response_does_not_retain_assertion
A 200 whose body is a JSON *string* echoing the assertion must be rejected at the wrap boundary — never bound to a frame local on its
tests/lib/test_credentials.py:5408
Functiontest_keeps_const_and_enum_and_drops_type
(schema: dict[str, Any], expected: dict[str, Any])
tests/lib/_parse/test_transform.py:135
Functiontest_keeps_description_beside_ref
()
tests/lib/_parse/test_transform.py:48
Functiontest_keeps_none
(send: Send)
tests/test_prepare.py:232
Functiontest_keeps_pydantic_literals
()
tests/lib/_parse/test_transform.py:166
Functiontest_keeps_root_model_docstring_beside_ref
()
tests/lib/_parse/test_transform.py:69
Functiontest_keeps_the_host_and_headers_of_the_parents_credential
`copy()` drops both with the credential that brought them, but the bearer is for the deployment and workspace the parent talks to.
tests/lib/test_scoped_client.py:168
Functiontest_keyword_only_param
()
tests/test_required_args.py:30
Functiontest_last_change_is_sent_once_when_an_idle_session_is_done
( notes: Path, steps: list[Step], options: dict[str, Any], received: object )
tests/lib/tools/memory_sync/test_e2e_memory.py:526
Functiontest_last_edit_is_uploaded_after_a_final_sync_that_failed_or_was_cut_off
( notes: Path, fault: Fault, uploaded_at: float, cut_off: bool, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_e2e_memory.py:613
Functiontest_last_of_two_tools_with_one_name_runs
()
tests/lib/tools/test_session_runner.py:1067
Methodtest_late_401_for_replaced_token_does_not_refresh_again
A 401 for a token the cache already replaced is retried with the newer token.
tests/lib/test_credentials.py:3007
Methodtest_late_401_forces_refresh_for_per_request_tokens
A per-request token (`expires_at=0`) differs on every call, so a late 401 still forces a refresh.
tests/lib/test_credentials.py:3032
Methodtest_late_per_request_result_does_not_replace_cached_expiring_token
(self)
tests/lib/test_credentials.py:2076
Functiontest_late_stop_is_sent_without_a_heartbeat
(ending: Step, at: float)
tests/lib/environments/test_worker.py:492
Functiontest_later_change_is_uploaded_after_a_write_without_a_response_and_one_that_failed
( notes: Path, name: str, failures: list[Step] )
tests/lib/tools/memory_sync/test_e2e_memory.py:246
Functiontest_later_change_is_uploaded_after_two_writes_that_were_saved_without_a_response
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:261
Functiontest_later_change_is_uploaded_over_a_write_that_was_saved_without_a_response
(notes: Path, name: str)
tests/lib/tools/memory_sync/test_e2e_memory.py:221
Methodtest_later_request_options_replace_the_threads_as_a_whole
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:136
Methodtest_later_turns_run_in_the_container_of_the_last_reply
( self, respx_mock: MockRouter, fields: dict[str, Any], expected: Any )
tests/lib/threads/test_beta_threads.py:1178
Functiontest_leading_semicolon_rejected
(template: str, kwargs: dict[str, Any])
tests/test_utils/test_path.py:109
Functiontest_lease_cannot_expire_early
(actions: list[Step], at: float)
tests/lib/environments/test_fake_work_api.py:109
Functiontest_lease_is_kept_until_the_memory_is_saved
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:635
Functiontest_lease_is_kept_when_a_heartbeat_succeeds_after_the_event_loop_was_blocked_past_the_ttl
( call: Call, at: float )
tests/lib/environments/test_worker.py:283
Functiontest_lease_is_kept_when_a_heartbeat_succeeds_after_the_ttl
()
tests/lib/environments/test_worker.py:292
Functiontest_lease_is_kept_when_the_api_accepts_the_repeat_of_a_heartbeat_whose_response_was_lost
( fault: Fault, variant: Variant )
tests/lib/environments/test_worker.py:271
Functiontest_lease_is_lost_one_ttl_after_the_last_heartbeat_that_succeeded_was_sent
(ttl: int)
tests/lib/environments/test_worker.py:347
Functiontest_lease_is_lost_when_it_expires_while_a_cancelled_worker_waits_for_a_sync_tool
(backend: str)
tests/lib/environments/test_worker.py:411
Functiontest_lease_of_another_worker_is_not_extended_after_a_failed_heartbeat
( fault: Fault, applied: bool, variant: Variant )
tests/lib/environments/test_worker.py:324
Methodtest_leaves_accepted_requests_and_the_response_untouched
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:232
Functiontest_lets_the_caller_refuse_a_held_call_by_removing_its_tool
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:538
Methodtest_lib_client_construction_validates_middleware
(self)
tests/test_middleware.py:2510
Methodtest_lib_clients_copy_inherits_replaces_and_clears
(self)
tests/test_middleware.py:2470
Functiontest_limit_below_one_is_rejected_when_the_runner_is_built
(async_client: AsyncAnthropic, limit: int)
tests/lib/tools/test_session_runner.py:293
Methodtest_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:198
Methodtest_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:317
Methodtest_list_has_only_the_ids_in_its_path
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7592
Functiontest_list_in_a_query
(client_class: ClientClass)
tests/lib/test_client_copy.py:349
Functiontest_list_mismatched_type
()
tests/test_models.py:130
Functiontest_list_nested_model
()
tests/test_models.py:69
Functiontest_list_of_unions
()
tests/test_models.py:320
Functiontest_list_optional_items_nested_model
()
tests/test_models.py:110
Methodtest_list_popped_wholesale
(self)
tests/test_files.py:128
Functiontest_listed_call_still_runs_after_another_thread_lists_its_own_calls
()
tests/lib/tools/test_session_runner.py:503
Functiontest_listed_call_still_runs_after_the_status_changes
(then: list[Step])
tests/lib/tools/test_session_runner.py:495
Functiontest_lists_only_the_call_that_the_caller_defers_and_not_its_toolsets_later_calls
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:250
Functiontest_lists_only_the_call_that_the_caller_defers_and_not_the_calls_after_it
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:446
Functiontest_lists_the_calls_that_are_being_held_so_that_the_caller_can_decide_about_them
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:122
Functiontest_local_deletions_reach_the_server_unless_it_changed
(tmp_path: Path, clock: Clock)
tests/lib/tools/memory_sync/test_memory_sync.py:79
Functiontest_local_file_policy_construction_rules
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:362
Functiontest_local_file_policy_download_visibility
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:347
Functiontest_local_file_policy_resolves_uploads_under_its_roots
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:304
Functiontest_local_file_policy_vets_document_ids_against_its_allowlist
()
tests/lib/tools/toolsets/test_security.py:324
Functiontest_localfilestore_is_an_alias_for_the_combined_class
()
tests/lib/tools/test_file_store.py:42
Methodtest_location_defaults_to_global
(self)
tests/lib/test_google_cloud.py:284
Methodtest_location_defaults_to_global
(self)
tests/lib/test_google_cloud.py:1475
Methodtest_location_from_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:320
Functiontest_log_only_mode_logs_the_delete_but_never_sends_it
The dry-run setting: the full pipeline runs — window, re-checks, cap — but the confirmed delete is logged instead of sent, on every sync while
tests/lib/tools/memory_sync/test_delete_discipline.py:219
Methodtest_long_token_masked_to_last_four
(self)
tests/lib/test_credentials.py:5273
Functiontest_lowercase_authorization_header_respected
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:658
Methodtest_lowercase_multipart_content_type
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:298
Functiontest_make_status_error_sync_async_parity
(status_code: int)
tests/test_client.py:145
Functiontest_managed_agents_are_on_the_raw_and_streaming_response_wrappers
()
tests/lib/test_bedrock.py:1162
Functiontest_managed_agents_request_goes_to_the_control_plane
(sync: bool, respx_mock: MockRouter)
tests/lib/test_bedrock.py:1058
Functiontest_managed_agents_request_is_signed_over_the_anthropic_path
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_bedrock.py:1078
Functiontest_managed_agents_request_keeps_the_anthropic_version_of_the_client
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:1153
Functiontest_managed_agents_request_sends_a_list_in_the_query_with_brackets
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:1169
Methodtest_managed_agents_routes
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:104
Methodtest_managed_agents_routes
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:159
Functiontest_managed_agents_stream_is_read_as_server_sent_events
(sync: bool, respx_mock: MockRouter)
tests/lib/test_bedrock.py:1196
Methodtest_mandatory_refresh_failure_raises
(self)
tests/lib/test_credentials.py:1694
Methodtest_mantle_api_key_takes_precedence_over_aws
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:152
Methodtest_mantle_middleware_sees_canonical_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:2389
Functiontest_mantle_user_profile_id_paths_are_up_to_date
()
tests/lib/test_platform_resources.py:155
Methodtest_matches_the_first_party_client
(self)
tests/lib/test_bedrock_mantle.py:260
Functiontest_max_concurrent_calls_below_one_is_rejected
(worker: Callable[..., EnvironmentWorker])
tests/lib/environments/test_worker.py:985
Functiontest_max_concurrent_calls_decides_when_the_call_of_a_second_thread_starts
( worker: Callable[..., EnvironmentWorker], options: dict[str, Any], second_starts_at: float )
tests/lib/environments/test_worker.py:974
Methodtest_max_content_bytes_bounds_a_streamed_message_too
( self, beta: bool, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3993
Methodtest_max_content_bytes_is_the_size_bound
( self, source: str, sync: bool, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3961
Functiontest_max_idle_decides_when_the_item_of_an_idle_session_is_stopped
( worker: Callable[..., EnvironmentWorker], options: dict[str, Any], stops: list[float] )
tests/lib/environments/test_worker.py:962
Functiontest_max_idle_set_during_iteration_is_not_used
()
tests/lib/tools/test_session_runner.py:2118
Methodtest_max_iterations
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:353
Functiontest_max_tokens_ends_runner_without_executing_tools_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:938
← previousnext →7,401–7,500 of 14,068, ranked by callers