[tests] Make tests pass again (configurable update interval)
This commit is contained in:
parent
e8288ef793
commit
9755a70578
2 changed files with 4 additions and 1 deletions
|
@ -3,3 +3,4 @@
|
||||||
- theme.minwidth
|
- theme.minwidth
|
||||||
- scrolling decorator
|
- scrolling decorator
|
||||||
- theme.exclude
|
- theme.exclude
|
||||||
|
- per module update interval
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
import core.config
|
||||||
import core.output
|
import core.output
|
||||||
import core.module
|
import core.module
|
||||||
|
|
||||||
|
@ -12,7 +13,8 @@ class i3(unittest.TestCase):
|
||||||
self.i3 = core.output.i3()
|
self.i3 = core.output.i3()
|
||||||
widget = unittest.mock.MagicMock()
|
widget = unittest.mock.MagicMock()
|
||||||
widget.full_text.return_value = "test"
|
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 = {
|
self.paddedTheme = core.theme.Theme(raw_data = {
|
||||||
'defaults': { 'padding': ' ' }
|
'defaults': { 'padding': ' ' }
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue