From b59ea4d5ab01b9794612ca1668ef4c1080449db8 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 22 Apr 2017 11:11:26 +0200 Subject: [PATCH] [tests] Fix broken tests caused by new theme methods Add "minwidth()" and "align()" mocks for i3bar output tests. --- tests/test_i3baroutput.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_i3baroutput.py b/tests/test_i3baroutput.py index 9b81c42..68f77df 100644 --- a/tests/test_i3baroutput.py +++ b/tests/test_i3baroutput.py @@ -24,6 +24,8 @@ class TestI3BarOutput(unittest.TestCase): self.theme.separator_block_width.return_value = 1 self.theme.fg.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._stdout = mock.patch("bumblebee.output.sys.stdout", new_callable=StringIO)