MCPcopy Create free account

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

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

Functiontest_nothing_runs_when_the_session_ends_between_the_reads_of_a_connection
()
tests/lib/tools/test_session_runner.py:1684
Methodtest_nothing_set_returns_none
(self)
tests/lib/test_credentials.py:2382
Functiontest_null_schema
()
tests/lib/_parse/test_transform.py:306
Functiontest_object_schema
()
tests/lib/_parse/test_transform.py:205
Functiontest_objects_with_a_read_method_are_not_files
(send: Send, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:633
Functiontest_of_one_reports_changes_for_a_download_only_the_latest_reaches_the_model
()
tests/lib/tools/toolsets/test_pipeline.py:666
Functiontest_of_the_changes_held_for_one_download_the_newest_is_the_one_carried_forward
()
tests/lib/tools/toolsets/test_pipeline.py:646
Methodtest_oidc_federation
(self, respx_mock: MockRouter, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:3424
Methodtest_oidc_federation_no_credentials_path_no_disk_cache
Without `authentication.credentials_path`, every call exchanges fresh — nothing is written to disk.
tests/lib/test_credentials.py:3473
Methodtest_oidc_federation_with_credentials_path_disk_cache
With `authentication.credentials_path` set, the exchanged token is written to that path and a second call returns it without re-exchanging.
tests/lib/test_credentials.py:3494
Methodtest_omit_headers_case_insensitive
(self, client: Anthropic)
tests/test_client.py:669
Methodtest_omit_headers_case_insensitive
(self, async_client: AsyncAnthropic)
tests/test_client.py:2419
Methodtest_omit_retry_count_header
( self, client: Anthropic, failures_before_success: int, respx_mock: MockRoute
tests/test_client.py:1516
Methodtest_omit_retry_count_header
( self, async_client: AsyncAnthropic, failures_before_success: int, respx_mock
tests/test_client.py:3283
Functiontest_omitted_fields
()
tests/test_models.py:524
Methodtest_one_forced_call_per_invalidate_in_per_request_mode
P0 is a per-request call that starts before invalidate() and finishes after it.
tests/lib/test_credentials.py:4284
Methodtest_one_input_part_over_the_bound_leaves_a_message_without_parts
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6258
Methodtest_one_output_part_over_the_bound_is_cut_from_its_end
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6241
Methodtest_one_state_shared_across_threads
(self)
tests/lib/test_refusal_fallback.py:1054
Methodtest_one_static_env_var_does_not_warn
( self, clean_env: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, clien
tests/lib/test_credentials.py:4922
Methodtest_one_streamed_output_part_over_the_bound_is_cut_from_its_end
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6159
Methodtest_oneshot_exchange_failure_does_not_retain_assertion
`exchange_federation_assertion` holds the caller's assertion as a parameter in its own (SDK-owned) frame; it is rebound to SecretStr on
tests/lib/test_credentials.py:5678
Functiontest_only_a_secret_without_a_token_is_warned_about
( secret: str | None, warnings: int, caplog: pytest.LogCaptureFixture )
tests/lib/environments/test_worker.py:754
Functiontest_only_an_unexpected_tool_error_is_logged_with_its_traceback
( error: Exception, tracebacks: int, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_session_runner.py:1050
Methodtest_only_omit_removes_a_client_header
(self, respx_mock: MockRouter, omitted: str)
tests/test_middleware.py:878
Methodtest_only_omit_removes_a_client_header
(self, respx_mock: MockRouter, omitted: str)
tests/test_middleware.py:1729
Functiontest_only_reads_that_began_after_the_countdown_ended_stop_the_runner
( closed: float, retrieved: list[float], ended: float )
tests/lib/tools/test_session_runner.py:1902
Methodtest_only_the_api_calls_of_a_tool_runner_have_http_and_url_attributes
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1867
Functiontest_only_the_changed_memory_is_fetched
(tmp_path: Path)
tests/lib/tools/memory_sync/test_two_pass.py:46
Methodtest_only_the_qualifier_marks_a_request_as_beta
( self, respx_mock: MockRouter, path: str, qualifiers: dict[str, str] | None, models: list[str] )
tests/lib/test_refusal_fallback.py:605
Functiontest_only_the_requests_of_a_sync_get_a_short_timeout
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:150
Functiontest_only_the_running_call_is_yielded_once_a_reconnect_reads_that_the_session_ended
()
tests/lib/tools/test_session_runner.py:1710
Functiontest_only_the_tool_of_the_resolved_call_is_cancelled
()
tests/lib/tools/test_session_runner.py:246
Methodtest_option_disables_spans
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2441
Functiontest_option_types_are_exported
()
tests/test_open_telemetry.py:3735
Functiontest_optional_list
()
tests/test_models.py:218
Functiontest_optional_list_nested_model
()
tests/test_models.py:88
Functiontest_optional_nested_model
()
tests/test_models.py:52
Functiontest_options_do_not_leak_into_the_entry
()
tests/lib/tools/toolsets/test_interface.py:299
Functiontest_options_do_not_leak_into_the_entry
()
tests/lib/tools/toolsets/test_computer_interface.py:214
Functiontest_oracle_accepts_right_actions
(steps: list[Step], actions: list[Step])
tests/lib/environments/test_worker_properties.py:422
Functiontest_oracle_checks_the_runner_against_the_events_it_was_given
(then: list[Step])
tests/lib/tools/test_session_runner_properties.py:771
Functiontest_oracle_expects_no_call_to_run_once_events_are_reordered_after_the_last_read
()
tests/lib/tools/test_session_runner_properties.py:783
Functiontest_oracle_expects_no_yield_for_a_denial_that_follows_the_result_of_the_call
()
tests/lib/tools/test_session_runner_properties.py:790
Functiontest_oracle_finds_no_violation_in_any_schedule_of_actions_and_faults
(data: st.DataObject, **options: Any)
tests/lib/environments/test_worker_properties.py:277
Functiontest_oracle_finds_no_violation_in_any_schedule_of_actions_and_faults
( data: st.DataObject, max_idle: float | None, limit: tuple[int | None, float], **options: Any
tests/lib/tools/test_session_runner_properties.py:523
Functiontest_oracle_lets_a_tool_run_at_the_instant_at_which_the_consumer_is_cancelled
()
tests/lib/tools/test_session_runner_properties.py:777
Functiontest_oracle_lets_calls_of_two_threads_start_in_either_order
(first: Step, second: Step)
tests/lib/tools/test_session_runner_properties.py:723
Functiontest_oracle_reports_a_runner_with_other_settings_than_it_expects
( steps: list[Step], options: dict[str, Any], violation: str )
tests/lib/tools/test_session_runner_properties.py:760
Functiontest_oracle_reports_a_wrong_action
(steps: list[Step], actions: list[Step], violation: str)
tests/lib/environments/test_worker_properties.py:398
Functiontest_oracle_reports_a_wrong_action
(steps: list[Step], actions: list[Step], violation: str)
tests/lib/tools/test_session_runner_properties.py:704
Functiontest_oracle_reports_a_wrong_action_with_calls_of_two_threads
( max_calls: int, actions: list[Step], violation: str )
tests/lib/tools/test_session_runner_properties.py:716
Functiontest_oracle_reports_a_wrong_yield
(steps: list[Step], options: dict[str, Any], violation: str)
tests/lib/tools/test_session_runner_properties.py:745
Functiontest_oracle_reports_two_holders
()
tests/lib/environments/test_worker_properties.py:404
Methodtest_organization_route
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:94
Methodtest_organization_route
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:149
Methodtest_organization_route_needs_no_workspace
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1535
Methodtest_organization_route_needs_no_workspace
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1694
Methodtest_organization_route_uses_organization_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1511
Methodtest_organization_route_uses_organization_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1668
Functiontest_original_result_is_yielded_when_the_error_result_is_refused_too
()
tests/lib/tools/test_session_runner.py:1275
Functiontest_original_schema_not_mutated
()
tests/lib/_parse/test_transform.py:318
Functiontest_other_iterables_are_not_iterated
(send: Send, value: object)
tests/test_prepare.py:278
Methodtest_other_methods
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2504
Functiontest_other_path_likes_are_not_read
(send: Send, file: object, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:652
Methodtest_other_providers_do_not
(self)
tests/lib/test_credentials.py:205
Methodtest_other_sessions_methods_do_not_have_the_agent_model_or_environment
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7542
Methodtest_other_thread_rejections_raise_and_keep_previous_message_id
( self, respx_mock: MockRouter, rejection: httpx2.Response )
tests/lib/threads/test_beta_threads.py:431
Methodtest_output_config_subfields_do_not_leak_into_the_next_hop
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:510
Methodtest_output_config_subfields_patch_one_level_deep
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:410
Methodtest_output_config_subfields_seed_a_missing_original
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:457
Methodtest_output_format_adds_no_beta_beyond_the_threads_beta
( self, respx_mock: MockRouter, fields: dict[str, Any] )
tests/lib/threads/test_beta_threads.py:1447
Methodtest_output_format_rejects_a_schema_dict
(self)
tests/lib/threads/test_beta_threads.py:1489
Functiontest_output_format_schema_not_shared_between_calls
()
tests/lib/_parse/test_transform.py:338
Methodtest_output_type_is_json_when_the_request_sets_a_json_output_format
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2546
Methodtest_output_type_is_json_when_the_runner_sets_a_json_output_format
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:978
Functiontest_override_detection_sees_dynamic_assignment_and_intermediate_classes
()
tests/lib/tools/toolsets/test_interface.py:280
Functiontest_override_detection_sees_intermediate_classes_and_dynamic_assignment
()
tests/lib/tools/toolsets/test_computer_interface.py:196
Methodtest_oversized_assertion_not_retained
(self)
tests/lib/test_credentials.py:5430
Methodtest_oversized_assertion_rejected
(self)
tests/lib/test_credentials.py:1406
Methodtest_oversized_response_body_rejected
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1442
Methodtest_overwrite_retry_count_header
( self, client: Anthropic, failures_before_success: int, respx_mock: MockRoute
tests/test_client.py:1554
Methodtest_overwrite_retry_count_header
( self, async_client: AsyncAnthropic, failures_before_success: int, respx_mock
tests/test_client.py:3321
Functiontest_page_and_model_text_is_folded_the_same_in_both_sdks
(fn: str, raw: str, shown: str)
tests/lib/tools/toolsets/test_pipeline.py:870
Methodtest_params_includes_the_output_format
(self)
tests/lib/threads/test_beta_threads.py:1317
Methodtest_params_is_the_whole_conversation_as_thread_arguments
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1266
Methodtest_params_returns_the_runnable_tools_as_given
(self)
tests/lib/threads/test_thread_tool_runner.py:164
Methodtest_parse_and_stream_create_no_message_class
( self, client: Anthropic, respx_mock: MockRouter, beta: bool )
tests/lib/_parse/test_messages.py:124
Methodtest_parse_and_stream_create_no_message_class
( self, async_client: AsyncAnthropic, respx_mock: MockRouter, beta: bool )
tests/lib/_parse/test_messages.py:288
Methodtest_parse_caller_beta_header_overrides
(self, client: Anthropic, respx_mock: respx.MockRouter)
tests/lib/test_stainless_helpers.py:147
Methodtest_parse_caller_beta_header_overrides
( self, async_client: AsyncAnthropic, respx_mock: respx.MockRouter )
tests/lib/test_stainless_helpers.py:249
Methodtest_parse_continues_the_thread_and_parses_each_reply
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1496
Methodtest_parse_continues_the_thread_and_parses_each_reply
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:730
Methodtest_parse_converts_pydantic_to_output_config
Verify .parse() converts Pydantic models to output_config.format.
tests/api_resources/beta/test_output_format_conversion.py:18
Methodtest_parse_does_not_add_beta_header
Verify .parse() sends no beta header when the caller passes no betas.
tests/api_resources/beta/test_output_format_conversion.py:219
Methodtest_parse_does_not_warn_for_type
`.parse(output_format=Model)` is silent.
tests/api_resources/beta/test_output_format_conversion.py:77
Methodtest_parse_forwards_speed
Test sync messages.parse() sends speed in the request body.
tests/lib/_parse/test_messages.py:108
Methodtest_parse_forwards_speed
Test async messages.parse() sends speed in the request body.
tests/lib/_parse/test_messages.py:272
Methodtest_parse_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:624
Methodtest_parse_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:819
← previousnext →9,301–9,400 of 14,068, ranked by callers