test(gateway): accept language/source args in gateway transcribe_audio stubs

The pre_transcription hook threads (path, language, source) through
gateway voice transcription; three sibling telegram-voice tests pinned
the old single-arg call shape.
This commit is contained in:
Teknium
2026-08-12 18:33:41 -07:00
parent bd11791a0e
commit 2c7756caf2
2 changed files with 3 additions and 3 deletions
@@ -74,7 +74,7 @@ async def test_voice_message_still_transcribed():
history=[],
)
mock_transcribe.assert_called_once_with("/tmp/voice.ogg")
mock_transcribe.assert_called_once_with("/tmp/voice.ogg", None, "gateway")
# The transcript passes through as a plain quoted line — no "voice message"
# meta-commentary in the LLM-visible prompt.
assert "hello world" in result
@@ -163,7 +163,7 @@ async def test_pending_voice_interrupt_reuses_transcript_and_echo():
assert interrupt_text == '"hello once"'
assert drain_text == interrupt_text
assert drain_transcripts == interrupt_transcripts == ["hello once"]
mock_transcribe.assert_called_once_with("/tmp/telegram-voice.ogg")
mock_transcribe.assert_called_once_with("/tmp/telegram-voice.ogg", None, "gateway")
adapter.send.assert_awaited_once_with(
"12345",
'🎙️ "hello once"',
@@ -216,7 +216,7 @@ async def test_monitor_to_drain_transcribes_and_echoes_pending_voice_once(
assert result["final_response"] == "follow-up complete"
assert _PendingVoiceAgent.messages == ["initial turn", '"hello once"']
mock_transcribe.assert_called_once_with("/tmp/telegram-pending-voice.ogg")
mock_transcribe.assert_called_once_with("/tmp/telegram-pending-voice.ogg", None, "gateway")
assert adapter.sent == [("12345", '🎙️ "hello once"', None)]