mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
test: update voice-submission test for _VoiceInputMessage sentinel (#65827)
This commit is contained in:
parent
e6b0344052
commit
e04c2a9ebd
1 changed files with 6 additions and 1 deletions
|
|
@ -1079,7 +1079,12 @@ class TestVoiceSubmission:
|
|||
cli._voice_stop_and_transcribe()
|
||||
|
||||
assert cli._attached_images == []
|
||||
assert cli._pending_input.get_nowait() == "hello"
|
||||
queued = cli._pending_input.get_nowait()
|
||||
# Voice transcripts are wrapped in the _VoiceInputMessage sentinel
|
||||
# (#65827) so process_loop can distinguish STT output from typed text.
|
||||
from cli import _VoiceInputMessage
|
||||
assert isinstance(queued, _VoiceInputMessage)
|
||||
assert queued.text == "hello"
|
||||
|
||||
|
||||
# ═════════════════════════════════════════════════════════════════════════
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue