Merge pull request #1486 from CerebriumAI/feature/ultravox

Feature/ultravox - bug fixes
This commit is contained in:
milo157
2025-04-01 00:03:26 +02:00
committed by GitHub
parent 2fb9aa4d76
commit ed387e876a
4 changed files with 19 additions and 13 deletions

View File

@@ -133,6 +133,6 @@ async def test_run_piper_tts_error(aiohttp_client):
up_frames = frames_received[1]
assert isinstance(up_frames[0], ErrorFrame), "Must receive an ErrorFrame for 404"
assert "status: 404" in up_frames[0].error, (
"ErrorFrame should contain details about the 404"
)
assert (
"status: 404" in up_frames[0].error
), "ErrorFrame should contain details about the 404"

View File

@@ -86,9 +86,9 @@ class TestUserIdleProcessor(unittest.IsolatedAsyncioTestCase):
expected_down_frames=expected_down_frames,
)
assert not callback_called.is_set(), (
"Idle callback was called even though bot speaking frames reset the timer"
)
assert (
not callback_called.is_set()
), "Idle callback was called even though bot speaking frames reset the timer"
async def test_idle_retry_callback(self):
"""Test that retry count increases until user activity resets it."""