Skip to content

Commit 5f56e1a

Browse files
committed
chore(tests): make ruff happy after head_wobbler removal
Drop three imports that became unused once the head_wobbler-only test cases were removed (numpy and pytest in tests/test_console.py, base64 in tests/test_openai_realtime.py). Re-collapse a wrapped lambda in tests/test_gemini_live.py back onto one line per ruff format. Pure tooling fix; no behaviour change. CI ruff check now passes.
1 parent 886c741 commit 5f56e1a

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

tests/test_console.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from types import SimpleNamespace
66
from unittest.mock import AsyncMock, MagicMock
77

8-
import numpy as np
9-
import pytest
108
from fastapi import FastAPI
119
from fastapi.testclient import TestClient
1210

tests/test_gemini_live.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ async def test_gemini_turn_buffers_transcripts(monkeypatch) -> None:
147147
handler.client = _FakeLiveClient(session)
148148

149149
task = asyncio.create_task(handler._run_live_session())
150-
await _wait_for(
151-
lambda: handler.output_queue.qsize() >= 3 and movement_manager.set_listening.call_count >= 2
152-
)
150+
await _wait_for(lambda: handler.output_queue.qsize() >= 3 and movement_manager.set_listening.call_count >= 2)
153151

154152
handler._stop_event.set()
155153
await asyncio.wait_for(task, timeout=1.0)

tests/test_openai_realtime.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import base64
21
import random
32
import asyncio
43
import logging

0 commit comments

Comments
 (0)