From a34157c6ea1a8a9ef0907c786e7195875119abc3 Mon Sep 17 00:00:00 2001 From: vadelma-agent Date: Sun, 26 Jul 2026 10:46:22 -0700 Subject: [PATCH] test(gateway): fix background cleanup fixture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Taneli Mielikäinen --- tests/gateway/test_background_command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gateway/test_background_command.py b/tests/gateway/test_background_command.py index ccf7833b19..65a98deecd 100644 --- a/tests/gateway/test_background_command.py +++ b/tests/gateway/test_background_command.py @@ -40,6 +40,10 @@ def _make_runner(): runner._background_tasks = set() mock_store = MagicMock() + # A real SessionStore returns None when no persisted /model override exists. + # MagicMock's default truthy return would otherwise rehydrate a fake model + # and make the session-scoped reasoning resolver receive a MagicMock. + mock_store.get_model_override.return_value = None runner.session_store = mock_store from gateway.hooks import HookRegistry