From e807b7106cd271e211df9fb29a6192eef8be9f11 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 28 Jul 2026 13:53:57 -0700 Subject: [PATCH] test: set returncode on fake Popen proc (main's player loop reads returncode, not wait()) --- tests/tools/test_transcription_tools.py | 3 ++- tests/tools/test_voice_mode_playback_env_scrub.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tools/test_transcription_tools.py b/tests/tools/test_transcription_tools.py index ed20bd3aa991..e5886bbae912 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 75cc38584552..55d883aead4f 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