MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_env_base_url

Function test_env_base_url

tests/lib/test_aws.py:320–323  ·  view source on GitHub ↗
(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

318
319
320def test_env_base_url(monkeypatch: pytest.MonkeyPatch) -> None:
321 monkeypatch.setenv("ANTHROPIC_AWS_BASE_URL", "https://custom-gateway.example.com")
322 client = AnthropicAWS(api_key="test-key", workspace_id="ws-123")
323 assert str(client.base_url).rstrip("/") == "https://custom-gateway.example.com"
324
325
326# --- Auth Precedence ---

Callers

nothing calls this directly

Calls 1

AnthropicAWSClass · 0.90

Tested by

no test coverage detected