From 9755a7057848b4650d9b4b03324dd23a6e48b3a2 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Mon, 23 Mar 2020 15:40:53 +0100 Subject: [PATCH] [tests] Make tests pass again (configurable update interval) --- doc/FEATURES.md | 1 + tests/core/test_output.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/FEATURES.md b/doc/FEATURES.md index d193ae4..c7caff6 100644 --- a/doc/FEATURES.md +++ b/doc/FEATURES.md @@ -3,3 +3,4 @@ - theme.minwidth - scrolling decorator - theme.exclude +- per module update interval diff --git a/tests/core/test_output.py b/tests/core/test_output.py index 0f26a20..4099e13 100644 --- a/tests/core/test_output.py +++ b/tests/core/test_output.py @@ -1,6 +1,7 @@ import json import unittest +import core.config import core.output import core.module @@ -12,7 +13,8 @@ class i3(unittest.TestCase): self.i3 = core.output.i3() widget = unittest.mock.MagicMock() widget.full_text.return_value = "test" - self.someModule = TestModule(widgets=[widget, widget, widget]) + self.someModule = TestModule(config=core.config.Config([]), + widgets=[widget, widget, widget]) self.paddedTheme = core.theme.Theme(raw_data = { 'defaults': { 'padding': ' ' } });