test(gateway): fix background cleanup fixture
Co-authored-by: Taneli Mielikäinen <taneli.mielikainen@iki.fi>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user