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

This commit is contained in:
Teknium 2026-07-28 13:53:57 -07:00
parent 050461ec83
commit e807b7106c
2 changed files with 3 additions and 1 deletions

View file

@ -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."""

View file

@ -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