MCPcopy Create free account

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

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

Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_rate_limits.py:77
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_rate_limits.py:217
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/memory_stores/test_memories.py:204
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/memory_stores/test_memories.py:523
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_rbac_groups.py:131
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_rbac_groups.py:323
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_workspaces.py:160
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_workspaces.py:386
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:161
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:420
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_api_keys.py:98
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_api_keys.py:226
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_users.py:92
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_users.py:252
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_service_accounts.py:140
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_service_accounts.py:343
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/federation/test_issuers.py:157
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/test_issuers.py:377
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/federation/test_rules.py:196
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/test_rules.py:456
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_members.py:108
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_members.py:357
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:108
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:356
Methodtest_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:72
Methodtest_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:205
Methodtest_path_params_validate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_keys.py:296
Methodtest_path_params_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_keys.py:581
Methodtest_path_params_validate
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:270
Methodtest_path_params_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:529
Methodtest_path_sharing_user_profiles_prefix_keeps_workspace_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1576
Methodtest_path_sharing_user_profiles_prefix_keeps_workspace_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1735
Methodtest_path_validation_reject_paths_not_starting_with_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:551
Methodtest_path_validation_reject_paths_not_starting_with_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1189
Methodtest_path_validation_reject_paths_trying_to_escape_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:559
Methodtest_path_validation_reject_paths_trying_to_escape_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1197
Functiontest_pathlib_in_file_tuple
()
tests/test_files.py:47
Functiontest_pathlib_includes_file_name
()
tests/test_files.py:14
Functiontest_pathlike_str_outside_file_slots_is_a_string
(send: Send, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:673
Functiontest_paths_that_escape_the_store_are_refused
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/lib/tools/memory_sync/test_memory_sync.py:150
Functiontest_pause_turn_respects_max_iterations_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:756
Functiontest_pause_turn_resumes_runner_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:721
Functiontest_pause_turn_resumes_runner_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:686
Methodtest_pdf_resource
(self)
tests/lib/tools/test_mcp_tool.py:221
Functiontest_pending_compaction_is_skipped_on_a_final_turn_with_unrun_tool_calls_async
( respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_runners.py:2776
Functiontest_pending_compaction_is_skipped_on_a_final_turn_with_unrun_tool_calls_sync
( respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_runners.py:2749
Functiontest_pending_compaction_is_skipped_when_max_iterations_ends_the_run_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:3038
Functiontest_pep604_discriminated_union_in_optional_invalid_data
()
tests/test_models.py:928
Functiontest_pep604_union_field_invalid_data
()
tests/test_models.py:904
Methodtest_per_call_header_wins_over_client_header
(self, respx_mock: MockRouter)
tests/test_middleware.py:857
Methodtest_per_call_header_wins_over_client_header
(self, respx_mock: MockRouter)
tests/test_middleware.py:1708
Methodtest_per_request_mode_still_forces_after_invalidate
invalidate() still makes the next call pass `force_refresh=True` when nothing is cached.
tests/lib/test_credentials.py:2028
Methodtest_per_request_mode_still_forces_after_invalidate
(self)
tests/lib/test_credentials.py:4238
Methodtest_per_request_omit_keeps_the_client_default
( self, client: AnthropicBedrockMantle, respx_mock: MockRouter )
tests/lib/test_bedrock_mantle.py:913
Functiontest_periodic_sync_waits_for_the_upload_after_an_idle
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:451
Functiontest_pickled_status_error_loads_as_its_own_class
(error_class: type[APIStatusError])
tests/test_exceptions.py:92
Methodtest_pins_the_conversation_to_the_accepted_fallback_via_state
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback.py:158
Methodtest_pins_the_conversation_to_the_accepted_fallback_via_state
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:770
Methodtest_pins_the_state_to_the_hop_that_served
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:668
Methodtest_platform_client_span
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4891
Methodtest_platform_client_spans_have_the_platform_in_their_scope
( self, platform: str, sync_client: Callable[..., Any], async_client: Callable
tests/test_open_telemetry.py:4860
Methodtest_platform_clients_have_the_option
(self, spans: Spans)
tests/test_open_telemetry.py:4315
Methodtest_platform_clients_read_the_environment_when_they_are_constructed
( self, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4802
Methodtest_platform_clients_replace_the_whole_option_too
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4642
Methodtest_platform_clients_without_spans_read_back_an_option_without_them
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4667
Methodtest_platform_headers_do_not_spawn_subprocesses
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:3384
Methodtest_pointer_at_missing_profile_raises
(self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:5231
Methodtest_pointer_at_missing_profile_raises_via_client
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:5237
Methodtest_pointer_at_present_profile_loads_normally
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:5252
Functiontest_poll_backoff_starts_over_after_a_response
(sync: bool, items: list[str], times: list[float])
tests/lib/environments/test_poller.py:67
Functiontest_poll_finds_the_item
(actions: list[Step], found: list[bool])
tests/lib/environments/test_fake_work_api.py:41
Functiontest_poll_has_the_given_parameters
(sync: bool, options: dict[str, Any], params: dict[str, str])
tests/lib/environments/test_poller.py:99
Functiontest_poll_names_the_given_worker
(sync: bool)
tests/lib/environments/test_poller.py:105
Functiontest_poll_that_cannot_succeed_raises
(sync: bool, fault: Step, error: type[Exception], kinds: list[str])
tests/lib/environments/test_poller.py:84
Functiontest_poller_and_worker_methods_are_only_on_the_async_client
(sync: bool)
tests/lib/environments/test_poller.py:287
Functiontest_polling_continues_after_a_stop_that_never_succeeds
(sync: bool, fault: Fault)
tests/lib/environments/test_poller.py:220
Functiontest_polling_uses_the_environment_key_and_the_item_its_token_and_each_request_names_its_helper
()
tests/lib/environments/test_worker.py:795
Functiontest_polls_back_off_while_acks_fail
(sync: bool)
tests/lib/environments/test_poller.py:143
Functiontest_positional_param
()
tests/test_required_args.py:17
Functiontest_post_construction_base_url_assignment_wins
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:861
Functiontest_post_gets_30_seconds_after_a_tool_that_returned_late_to_a_cancelled_consumer
( failures: int, exited: float )
tests/lib/tools/test_session_runner.py:1330
Functiontest_post_refused_for_another_reason_is_not_repeated_and_the_next_call_runs
(status: int)
tests/lib/tools/test_session_runner.py:1214
Functiontest_prefix_items_and_foreign_resources_leave_no_trace
Only `memory_store` resources are downloaded and only `memory` items carry content — a `file` resource and `memory_prefix` rollups pass throug
tests/lib/tools/memory_sync/test_memory_sync.py:412
Functiontest_prepare_options_lifts_anthropic_beta_header_case_insensitively
()
tests/lib/test_bedrock.py:908
Functiontest_preserves_key_order
(send: Send)
tests/test_prepare.py:401
Functiontest_primary_thread_call_with_no_permission_runs_when_an_idle_lists_it
( before: list[Step], idle: Step, start: float )
tests/lib/tools/test_session_runner.py:478
Methodtest_profile_base_url_adopted_by_client
Outbound: a zero-arg `Anthropic()` adopts the active profile's `base_url` when the user supplied neither `base_url=` nor `ANTHROPIC_BA
tests/lib/test_credentials.py:2768
Methodtest_profile_env_triggers_tier1
ANTHROPIC_PROFILE set → tier 1 fires.
tests/lib/test_credentials.py:2174
Methodtest_profile_from_active_config
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1043
Methodtest_profile_from_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:1038
Methodtest_profile_name_empty_rejected
(self)
tests/lib/test_credentials.py:900
Methodtest_profile_name_leading_dot_rejected
(self)
tests/lib/test_credentials.py:896
Methodtest_profile_name_path_traversal_rejected
(self)
tests/lib/test_credentials.py:892
Methodtest_profile_name_with_dot_prefix_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4513
Methodtest_profile_param_loads_named_profile
`Anthropic(profile="staging")` loads `configs/staging.json` from the config directory, equivalent to setting `ANTHROPIC_PROFILE`.
tests/lib/test_credentials.py:3357
Methodtest_profile_returns_true
(self)
tests/lib/test_aws_auth.py:74
Methodtest_profile_suppresses_env_api_key
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:121
Methodtest_profile_value_wins_over_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:1488
Methodtest_programmatic_tool_call
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:496
Methodtest_project_backfilled_from_adc_for_organization_route
( self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:1638
← previousnext →10,001–10,100 of 14,068, ranked by callers