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 SyncAPI calls 1 called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/lib/test_vertex.py lines 61–66

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