Home / Function/ test_copy_default_options() — anthropic-sdk-python Function Reference

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.

Function python AnthropicClient SyncAPI calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  fd95a881_7ffd_acab_32bc_0fdf84d51c8b["test_copy_default_options()"]
  d3290b43_b727_3d0c_38d7_e3383a13bfe4["TestAsyncAnthropicVertex"]
  fd95a881_7ffd_acab_32bc_0fdf84d51c8b -->|defined in| d3290b43_b727_3d0c_38d7_e3383a13bfe4
  0d8a0dfd_83cd_186a_bf4d_f88e929e7702["test_copy_default_options()"]
  0d8a0dfd_83cd_186a_bf4d_f88e929e7702 -->|calls| fd95a881_7ffd_acab_32bc_0fdf84d51c8b
  0d8a0dfd_83cd_186a_bf4d_f88e929e7702["test_copy_default_options()"]
  fd95a881_7ffd_acab_32bc_0fdf84d51c8b -->|calls| 0d8a0dfd_83cd_186a_bf4d_f88e929e7702
  style fd95a881_7ffd_acab_32bc_0fdf84d51c8b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/lib/test_vertex.py lines 198–212

    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)

Subdomains

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 198.
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