Skip to content

Commit e3976d2

Browse files
committed
Fix test in CI
1 parent 450f18d commit e3976d2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_speech_engine_auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ def test_invalid_token(self) -> None:
188188

189189
class TestServerApiKeyRequirement:
190190
@pytest.mark.asyncio
191-
async def test_raises_without_api_key(self) -> None:
191+
async def test_raises_without_api_key(self, monkeypatch: pytest.MonkeyPatch) -> None:
192+
monkeypatch.delenv("ELEVENLABS_API_KEY", raising=False)
192193
from elevenlabs.speech_engine import SpeechEngineServer
193194

194195
server = SpeechEngineServer(port=0)

0 commit comments

Comments
 (0)