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

test_regional_base_url() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8585eaa8_6ec4_0034_2f78_1da3aebc7f7c["test_regional_base_url()"]
  4a282b80_48ff_4ba8_f27f_bad6b030b947["TestAnthropicVertex"]
  8585eaa8_6ec4_0034_2f78_1da3aebc7f7c -->|defined in| 4a282b80_48ff_4ba8_f27f_bad6b030b947
  2e5d30bf_5561_8fc6_5d93_02783d668329["test_regional_base_url()"]
  2e5d30bf_5561_8fc6_5d93_02783d668329 -->|calls| 8585eaa8_6ec4_0034_2f78_1da3aebc7f7c
  2e5d30bf_5561_8fc6_5d93_02783d668329["test_regional_base_url()"]
  8585eaa8_6ec4_0034_2f78_1da3aebc7f7c -->|calls| 2e5d30bf_5561_8fc6_5d93_02783d668329
  style 8585eaa8_6ec4_0034_2f78_1da3aebc7f7c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/lib/test_vertex.py lines 128–132

    def test_regional_base_url(self, region: str) -> None:
        """Test that regional endpoints use the correct base URL format."""
        client = AnthropicVertex(region=region, project_id="test-project", access_token="fake-token")
        expected_url = f"https://{region}-aiplatform.googleapis.com/v1"
        assert str(client.base_url).rstrip("/") == expected_url

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free