Skip to content

The agent that grows with you

test: set returncode on fake Popen proc (main's player loop reads returncode, not wait())

Tekniume807b7106cd2
diff --git a/tests/tools/test_transcription_tools.py b/tests/tools/test_transcription_tools.py
index ed20bd3aa99..e5886bbae91 100644
--- a/tests/tools/test_transcription_tools.py
+++ b/tests/tools/test_transcription_tools.py
@@ -2465,7 +2465,8 @@ class TestCafConversion:
assert result["success"] is True
mock_convert.assert_not_called()
-=======
+
+
class TestTranscribeCredentialReadGuard:
"""transcribe_audio must refuse credential/secret stores before dispatch."""
diff --git a/tests/tools/test_voice_mode_playback_env_scrub.py b/tests/tools/test_voice_mode_playback_env_scrub.py
index 75cc3858455..55d883aead4 100644
--- a/tests/tools/test_voice_mode_playback_env_scrub.py
+++ b/tests/tools/test_voice_mode_playback_env_scrub.py
@@ -16,6 +16,7 @@ def test_play_audio_file_scrubbed_env(tmp_path, monkeypatch):
captured["env"] = kwargs.get("env")
proc = MagicMock()
proc.wait.return_value = 0
+ proc.returncode = 0
return proc
import tools.voice_mode as vm