diff --git a/src/plugin_system/testing/mocks.py b/src/plugin_system/testing/mocks.py index cbe36b31..46104c68 100644 --- a/src/plugin_system/testing/mocks.py +++ b/src/plugin_system/testing/mocks.py @@ -137,6 +137,7 @@ class MockCacheManager: self.get_calls = [] self.set_calls = [] self.delete_calls = [] + self.get_cached_data_with_strategy_calls = [] class MockConfigManager: diff --git a/test/test_testing_mocks.py b/test/test_testing_mocks.py index 4505eeec..f8ed6516 100644 --- a/test/test_testing_mocks.py +++ b/test/test_testing_mocks.py @@ -37,3 +37,9 @@ class TestMockCacheManagerStrategyMethod: cm = MockCacheManager() cm.save_cache("standings_nfl", {"teams": ["KC", "BUF"]}) assert cm.get_cached_data_with_strategy("standings_nfl") == {"teams": ["KC", "BUF"]} + + def test_reset_clears_strategy_call_tracking(self): + cm = MockCacheManager() + cm.get_cached_data_with_strategy("k", "sports_live") + cm.reset() + assert cm.get_cached_data_with_strategy_calls == []