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

test_with_options() — anthropic-sdk-python Function Reference

Architecture documentation for the test_with_options() function in test_vertex.py from the anthropic-sdk-python codebase.

Function python AnthropicClient AsyncAPI calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  ed20a314_0099_f36e_47d5_fa1f05027a2b["test_with_options()"]
  d3290b43_b727_3d0c_38d7_e3383a13bfe4["TestAsyncAnthropicVertex"]
  ed20a314_0099_f36e_47d5_fa1f05027a2b -->|defined in| d3290b43_b727_3d0c_38d7_e3383a13bfe4
  32103369_434d_cd4f_744c_8312ab2b9b3c["test_with_options()"]
  32103369_434d_cd4f_744c_8312ab2b9b3c -->|calls| ed20a314_0099_f36e_47d5_fa1f05027a2b
  32103369_434d_cd4f_744c_8312ab2b9b3c["test_with_options()"]
  ed20a314_0099_f36e_47d5_fa1f05027a2b -->|calls| 32103369_434d_cd4f_744c_8312ab2b9b3c
  style ed20a314_0099_f36e_47d5_fa1f05027a2b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/lib/test_vertex.py lines 191–196

    def test_with_options(self) -> None:
        copied = self.client.with_options(region="another-region", project_id="another-project")
        assert copied.region == "another-region"
        assert self.client.region == "region"
        assert copied.project_id == "another-project"
        assert self.client.project_id == "project"

Subdomains

Frequently Asked Questions

What does test_with_options() do?
test_with_options() is a function in the anthropic-sdk-python codebase, defined in tests/lib/test_vertex.py.
Where is test_with_options() defined?
test_with_options() is defined in tests/lib/test_vertex.py at line 191.
What does test_with_options() call?
test_with_options() calls 1 function(s): test_with_options.
What calls test_with_options()?
test_with_options() is called by 1 function(s): test_with_options.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free