From a69bd55b5a9926692b096d581d6856c7e2a0fefc Mon Sep 17 00:00:00 2001 From: 0xbyt4 <35742124+0xbyt4@users.noreply.github.com> Date: Tue, 3 Mar 2026 18:46:29 +0300 Subject: [PATCH] fix: isolate GROQ_API_KEY in test_missing_stt_key test The test was failing because GROQ_API_KEY leaked from the environment. Now both VOICE_TOOLS_OPENAI_KEY and GROQ_API_KEY are removed to properly test the "no STT key" scenario. --- tests/tools/test_voice_mode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tools/test_voice_mode.py b/tests/tools/test_voice_mode.py index fe841f5c..d9dcba2c 100644 --- a/tests/tools/test_voice_mode.py +++ b/tests/tools/test_voice_mode.py @@ -86,6 +86,7 @@ class TestCheckVoiceRequirements: def test_missing_stt_key(self, monkeypatch): monkeypatch.setattr("tools.voice_mode._HAS_AUDIO", True) monkeypatch.delenv("VOICE_TOOLS_OPENAI_KEY", raising=False) + monkeypatch.delenv("GROQ_API_KEY", raising=False) from tools.voice_mode import check_voice_requirements