From 237b0f5d5e6a3356cf0e95a32b355b15e92e351d Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 28 Jul 2026 12:29:18 -0700 Subject: [PATCH] test: opt TestSpeakTextGuards out of the new audio-playback guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The autouse _audio_playback_guard from this PR stubs voice.speak_text globally — but these tests exercise speak_text itself with their own playback stubs (no real audio possible). Mark real_audio_playback so the guard yields; the tests' own monkeypatches keep speakers silent. --- tests/hermes_cli/test_voice_wrapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hermes_cli/test_voice_wrapper.py b/tests/hermes_cli/test_voice_wrapper.py index 0c2652d8a2ee..a06a94735cb1 100644 --- a/tests/hermes_cli/test_voice_wrapper.py +++ b/tests/hermes_cli/test_voice_wrapper.py @@ -278,6 +278,7 @@ class TestStopWithoutStart: assert voice.stop_and_transcribe() is None +@pytest.mark.real_audio_playback class TestSpeakTextGuards: @pytest.mark.parametrize("text", ["", " ", "\n\t "]) def test_empty_text_is_noop(self, text):