test: harden relevance gate regressions

This commit is contained in:
2026-04-09 10:41:06 -04:00
parent 6793522d93
commit 56030567ed

View File

@@ -35,6 +35,17 @@ class EventManagerRelevanceGateRegressionTests(unittest.TestCase):
self.listenerPatch.start()
self.addCleanup(self.listenerPatch.stop)
self.steamAppPatch = mock.patch.object(event_manager.EventManager, "_isSteamApp", return_value=False)
self.steamNotificationPatch = mock.patch.object(
event_manager.EventManager,
"_isSteamNotificationEvent",
return_value=False,
)
self.steamAppPatch.start()
self.steamNotificationPatch.start()
self.addCleanup(self.steamAppPatch.stop)
self.addCleanup(self.steamNotificationPatch.stop)
self.originalActiveScript = cthulhu_state.activeScript
self.originalLocusOfFocus = cthulhu_state.locusOfFocus
self.addCleanup(self._restore_state)