test_copy_default_options() — anthropic-sdk-python Function Reference
Architecture documentation for the test_copy_default_options() function in test_vertex.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 0d8a0dfd_83cd_186a_bf4d_f88e929e7702["test_copy_default_options()"] 4a282b80_48ff_4ba8_f27f_bad6b030b947["TestAnthropicVertex"] 0d8a0dfd_83cd_186a_bf4d_f88e929e7702 -->|defined in| 4a282b80_48ff_4ba8_f27f_bad6b030b947 fd95a881_7ffd_acab_32bc_0fdf84d51c8b["test_copy_default_options()"] fd95a881_7ffd_acab_32bc_0fdf84d51c8b -->|calls| 0d8a0dfd_83cd_186a_bf4d_f88e929e7702 fd95a881_7ffd_acab_32bc_0fdf84d51c8b["test_copy_default_options()"] 0d8a0dfd_83cd_186a_bf4d_f88e929e7702 -->|calls| fd95a881_7ffd_acab_32bc_0fdf84d51c8b style 0d8a0dfd_83cd_186a_bf4d_f88e929e7702 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/lib/test_vertex.py lines 68–82
def test_copy_default_options(self) -> None:
# options that have a default are overridden correctly
copied = self.client.copy(max_retries=7)
assert copied.max_retries == 7
assert self.client.max_retries == 2
copied2 = copied.copy(max_retries=6)
assert copied2.max_retries == 6
assert copied.max_retries == 7
# timeout
assert isinstance(self.client.timeout, httpx.Timeout)
copied = self.client.copy(timeout=None)
assert copied.timeout is None
assert isinstance(self.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/lib/test_vertex.py.
Where is test_copy_default_options() defined?
test_copy_default_options() is defined in tests/lib/test_vertex.py at line 68.
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