(monkeypatch: pytest.MonkeyPatch)
| 318 | |
| 319 | |
| 320 | def 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 --- |
nothing calls this directly
no test coverage detected