()
| 216 | |
| 217 | |
| 218 | def test_enforce_credentials_true_async() -> None: |
| 219 | with update_env(AZURE_OPENAI_API_KEY=Omit(), AZURE_OPENAI_AD_TOKEN=Omit()): |
| 220 | with pytest.raises(OpenAIError, match="Missing credentials"): |
| 221 | AsyncAzureOpenAI( |
| 222 | api_version="2024-02-01", |
| 223 | api_key=None, |
| 224 | azure_ad_token=None, |
| 225 | azure_ad_token_provider=None, |
| 226 | azure_endpoint="https://example-resource.azure.openai.com", |
| 227 | ) |
| 228 | |
| 229 | |
| 230 | @pytest.mark.respx() |
nothing calls this directly
no test coverage detected