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 b690456f_9001_fa33_5498_bf5a6b9d9ec4["test_copy_default_options()"] d53b6c34_1743_a045_4be1_3554ab153964["TestAnthropic"] b690456f_9001_fa33_5498_bf5a6b9d9ec4 -->|defined in| d53b6c34_1743_a045_4be1_3554ab153964 d52f3e3a_8ac1_1640_89eb_1efb04f62183["test_copy_default_options()"] d52f3e3a_8ac1_1640_89eb_1efb04f62183 -->|calls| b690456f_9001_fa33_5498_bf5a6b9d9ec4 d52f3e3a_8ac1_1640_89eb_1efb04f62183["test_copy_default_options()"] b690456f_9001_fa33_5498_bf5a6b9d9ec4 -->|calls| d52f3e3a_8ac1_1640_89eb_1efb04f62183 style b690456f_9001_fa33_5498_bf5a6b9d9ec4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_client.py lines 144–158
def test_copy_default_options(self, client: Anthropic) -> None:
# options that have a default are overridden correctly
copied = client.copy(max_retries=7)
assert copied.max_retries == 7
assert client.max_retries == 2
copied2 = copied.copy(max_retries=6)
assert copied2.max_retries == 6
assert copied.max_retries == 7
# timeout
assert isinstance(client.timeout, httpx.Timeout)
copied = client.copy(timeout=None)
assert copied.timeout is None
assert isinstance(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 144.
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