[tests] Make tests pass again (configurable update interval)

This commit is contained in:
Tobias Witek 2020-03-23 15:40:53 +01:00
parent e8288ef793
commit 9755a70578
2 changed files with 4 additions and 1 deletions

View file

@ -3,3 +3,4 @@
- theme.minwidth
- scrolling decorator
- theme.exclude
- per module update interval

View file

@ -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': ' ' }
});