[tests] Fix broken tests caused by new theme methods
Add "minwidth()" and "align()" mocks for i3bar output tests.
This commit is contained in:
parent
1670890491
commit
0f34826cac
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ class TestI3BarOutput(unittest.TestCase):
|
||||||
self.theme.separator_block_width.return_value = 1
|
self.theme.separator_block_width.return_value = 1
|
||||||
self.theme.fg.return_value = "#ababab"
|
self.theme.fg.return_value = "#ababab"
|
||||||
self.theme.bg.return_value = "#ababab"
|
self.theme.bg.return_value = "#ababab"
|
||||||
|
self.theme.align.return_value = None
|
||||||
|
self.theme.minwidth.return_value = ""
|
||||||
self.output = I3BarOutput(self.theme)
|
self.output = I3BarOutput(self.theme)
|
||||||
|
|
||||||
self._stdout = mock.patch("bumblebee.output.sys.stdout", new_callable=StringIO)
|
self._stdout = mock.patch("bumblebee.output.sys.stdout", new_callable=StringIO)
|
||||||
|
|
Loading…
Reference in a new issue