diff --git a/tests/gateway/test_stream_final_adoption_gate.py b/tests/gateway/test_stream_final_adoption_gate.py index 02f07bfa5f..a44ecb3104 100644 --- a/tests/gateway/test_stream_final_adoption_gate.py +++ b/tests/gateway/test_stream_final_adoption_gate.py @@ -75,7 +75,7 @@ class TestGateWiring: completed checks — a source-level pin so the contract test above cannot drift green while the call site regresses.""" import inspect - import gateway.run as run_mod + import gateway.run_turn_runner as run_mod src = inspect.getsource(run_mod) anchor = src.index("_final_for_stream = None") diff --git a/tests/gateway/test_voice_mode_platform_isolation.py b/tests/gateway/test_voice_mode_platform_isolation.py index 799029911f..f6c5932f8b 100644 --- a/tests/gateway/test_voice_mode_platform_isolation.py +++ b/tests/gateway/test_voice_mode_platform_isolation.py @@ -77,7 +77,7 @@ class TestLegacyKeyMigration: voice_path.write_text(json.dumps(legacy_data)) with patch.object(runner, "_VOICE_MODE_PATH", voice_path): - with patch("gateway.run.logger") as mock_logger: + with patch("gateway.run_voice.logger") as mock_logger: result = runner._load_voice_modes() # Legacy keys without ':' should be skipped