mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
test: set returncode on fake Popen proc (main's player loop reads returncode, not wait())
This commit is contained in:
parent
050461ec83
commit
e807b7106c
2 changed files with 3 additions and 1 deletions
|
|
@ -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."""
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue