test_copy_default_options() — anthropic-sdk-python Function Reference
Architecture documentation for the test_copy_default_options() function in test_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD d52f3e3a_8ac1_1640_89eb_1efb04f62183["test_copy_default_options()"] 9bf4cfe0_e3b0_70de_25ac_2113c8918900["TestAsyncAnthropic"] d52f3e3a_8ac1_1640_89eb_1efb04f62183 -->|defined in| 9bf4cfe0_e3b0_70de_25ac_2113c8918900 b690456f_9001_fa33_5498_bf5a6b9d9ec4["test_copy_default_options()"] b690456f_9001_fa33_5498_bf5a6b9d9ec4 -->|calls| d52f3e3a_8ac1_1640_89eb_1efb04f62183 b690456f_9001_fa33_5498_bf5a6b9d9ec4["test_copy_default_options()"] d52f3e3a_8ac1_1640_89eb_1efb04f62183 -->|calls| b690456f_9001_fa33_5498_bf5a6b9d9ec4 style d52f3e3a_8ac1_1640_89eb_1efb04f62183 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_client.py lines 1122–1136
def test_copy_default_options(self, async_client: AsyncAnthropic) -> None:
# options that have a default are overridden correctly
copied = async_client.copy(max_retries=7)
assert copied.max_retries == 7
assert async_client.max_retries == 2
copied2 = copied.copy(max_retries=6)
assert copied2.max_retries == 6
assert copied.max_retries == 7
# timeout
assert isinstance(async_client.timeout, httpx.Timeout)
copied = async_client.copy(timeout=None)
assert copied.timeout is None
assert isinstance(async_client.timeout, httpx.Timeout)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does test_copy_default_options() do?
test_copy_default_options() is a function in the anthropic-sdk-python codebase, defined in tests/test_client.py.
Where is test_copy_default_options() defined?
test_copy_default_options() is defined in tests/test_client.py at line 1122.
What does test_copy_default_options() call?
test_copy_default_options() calls 1 function(s): test_copy_default_options.
What calls test_copy_default_options()?
test_copy_default_options() is called by 1 function(s): test_copy_default_options.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free