test: update voice-submission test for _VoiceInputMessage sentinel (#65827)
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
# ═════════════════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user