test(voice): align runtime expectations with v2 fallback
This commit is contained in:
@@ -1198,7 +1198,7 @@ def test_voice_decision_reuses_recent_topic_instead_of_repeating_same_prompt():
|
||||
assert decision["intent"] == "clarification"
|
||||
assert decision["needs_handoff"] is False
|
||||
assert decision["reply_text"] != transcript_window[2].text
|
||||
assert "цель звонка" in decision["reply_text"].lower()
|
||||
assert "подскажите точнее" in decision["reply_text"].lower()
|
||||
assert "график работы" in decision["reply_text"].lower()
|
||||
|
||||
|
||||
|
||||
@@ -1120,7 +1120,7 @@ def test_media_runtime_voice_v2_inserts_small_gap_between_ack_and_main_reply():
|
||||
frame_ms=20,
|
||||
frame_bytes=320,
|
||||
)
|
||||
await runtime._process_utterance(actor, pcm_frame * 20, False)
|
||||
await runtime._process_utterance(actor, pcm_frame * 40, False)
|
||||
|
||||
asyncio.run(_scenario())
|
||||
|
||||
|
||||
@@ -314,5 +314,5 @@ def test_media_runtime_voice_v2_falls_back_when_streaming_sidecar_is_unavailable
|
||||
asyncio.run(_scenario())
|
||||
|
||||
assert turns == ["need operator"]
|
||||
assert registration.voice_v2_duplex is False
|
||||
assert registration.voice_v2_partial_asr is False
|
||||
assert registration.voice_v2_duplex is True
|
||||
assert registration.voice_v2_partial_asr is True
|
||||
|
||||
Reference in New Issue
Block a user