From e50323f73098c821619f998d4d5668836cef3ad7 Mon Sep 17 00:00:00 2001 From: 0xbyt4 <35742124+0xbyt4@users.noreply.github.com> Date: Wed, 11 Mar 2026 17:30:38 +0300 Subject: [PATCH] fix(test): add missing _voice_mode attr to GatewayRunner test stubs --- tests/gateway/test_background_command.py | 1 + tests/gateway/test_resume_command.py | 1 + tests/gateway/test_run_progress_topics.py | 1 + tests/gateway/test_session_hygiene.py | 1 + tests/gateway/test_title_command.py | 1 + tests/gateway/test_update_command.py | 1 + 6 files changed, 6 insertions(+) diff --git a/tests/gateway/test_background_command.py b/tests/gateway/test_background_command.py index 6a780fb1..027742ea 100644 --- a/tests/gateway/test_background_command.py +++ b/tests/gateway/test_background_command.py @@ -32,6 +32,7 @@ def _make_runner(): from gateway.run import GatewayRunner runner = object.__new__(GatewayRunner) runner.adapters = {} + runner._voice_mode = {} runner._session_db = None runner._reasoning_config = None runner._provider_routing = {} diff --git a/tests/gateway/test_resume_command.py b/tests/gateway/test_resume_command.py index 17adcd2e..987afbce 100644 --- a/tests/gateway/test_resume_command.py +++ b/tests/gateway/test_resume_command.py @@ -36,6 +36,7 @@ def _make_runner(session_db=None, current_session_id="current_session_001", from gateway.run import GatewayRunner runner = object.__new__(GatewayRunner) runner.adapters = {} + runner._voice_mode = {} runner._session_db = session_db runner._running_agents = {} diff --git a/tests/gateway/test_run_progress_topics.py b/tests/gateway/test_run_progress_topics.py index 20ae712a..66d13e0d 100644 --- a/tests/gateway/test_run_progress_topics.py +++ b/tests/gateway/test_run_progress_topics.py @@ -77,6 +77,7 @@ def _make_runner(adapter): runner = object.__new__(GatewayRunner) runner.adapters = {Platform.TELEGRAM: adapter} + runner._voice_mode = {} runner._prefill_messages = [] runner._ephemeral_system_prompt = "" runner._reasoning_config = None diff --git a/tests/gateway/test_session_hygiene.py b/tests/gateway/test_session_hygiene.py index d627c205..7e75b906 100644 --- a/tests/gateway/test_session_hygiene.py +++ b/tests/gateway/test_session_hygiene.py @@ -266,6 +266,7 @@ async def test_session_hygiene_messages_stay_in_originating_topic(monkeypatch, t platforms={Platform.TELEGRAM: PlatformConfig(enabled=True, token="fake-token")} ) runner.adapters = {Platform.TELEGRAM: adapter} + runner._voice_mode = {} runner.hooks = SimpleNamespace(emit=AsyncMock(), loaded_hooks=False) runner.session_store = MagicMock() runner.session_store.get_or_create_session.return_value = SessionEntry( diff --git a/tests/gateway/test_title_command.py b/tests/gateway/test_title_command.py index 7f7c782a..d5bad6c5 100644 --- a/tests/gateway/test_title_command.py +++ b/tests/gateway/test_title_command.py @@ -31,6 +31,7 @@ def _make_runner(session_db=None): from gateway.run import GatewayRunner runner = object.__new__(GatewayRunner) runner.adapters = {} + runner._voice_mode = {} runner._session_db = session_db # Mock session_store that returns a session entry with a known session_id diff --git a/tests/gateway/test_update_command.py b/tests/gateway/test_update_command.py index 063f3c5a..0aad419a 100644 --- a/tests/gateway/test_update_command.py +++ b/tests/gateway/test_update_command.py @@ -33,6 +33,7 @@ def _make_runner(): from gateway.run import GatewayRunner runner = object.__new__(GatewayRunner) runner.adapters = {} + runner._voice_mode = {} return runner