(monkeypatch: pytest.MonkeyPatch)
| 304 | |
| 305 | |
| 306 | def test_env_api_key(monkeypatch: pytest.MonkeyPatch) -> None: |
| 307 | monkeypatch.setenv("ANTHROPIC_AWS_API_KEY", "env-key") |
| 308 | monkeypatch.delenv("AWS_REGION", raising=False) |
| 309 | client = AnthropicAWS(base_url="https://example.com", workspace_id="ws-123") |
| 310 | assert client.api_key == "env-key" |
| 311 | assert client._use_sigv4 is False |
| 312 | |
| 313 | |
| 314 | def test_env_region(monkeypatch: pytest.MonkeyPatch) -> None: |
nothing calls this directly
no test coverage detected