[output/i3bar] Add flush method
flush() terminates a single iteration of widget drawing. see #23
This commit is contained in:
parent
712d958e18
commit
b6eb3ee8e6
6 changed files with 20 additions and 2 deletions
|
@ -41,4 +41,10 @@ class TestI3BarOutput(unittest.TestCase):
|
|||
for res in result:
|
||||
self.assertEquals(res["full_text"], self.someWidget.text())
|
||||
|
||||
@mock.patch("sys.stdout", new_callable=StringIO)
|
||||
def test_flush(self, stdout):
|
||||
self.output.flush()
|
||||
self.assertEquals(",\n", stdout.getvalue())
|
||||
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue