test(proxy): clear leaked auth dependency override before Azure Speech real-auth tests

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yassin 2026-09-17 04:03:22 +00:00
parent a0425a1f99
commit 6e56ba86c5

View file

@ -6423,6 +6423,7 @@ class TestAzureSpeechRawBodyThroughRealAuth:
) -> httpx.Response:
from litellm.proxy.proxy_server import app
monkeypatch.delitem(app.dependency_overrides, user_api_key_auth, raising=False)
monkeypatch.setenv("AZURE_SPEECH_API_KEY", "server-subscription-key")
monkeypatch.setenv("AZURE_SPEECH_REGION", "eastus")
monkeypatch.delenv("AZURE_SPEECH_API_BASE", raising=False)