[tests] Fix broken tests caused by new theme methods

Add "minwidth()" and "align()" mocks for i3bar output tests.
This commit is contained in:
Tobias Witek 2017-04-22 11:11:26 +02:00
parent 1670890491
commit 0f34826cac

View file

@ -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)