tests: Let silent=None denote we don't care about the output of the command

This commit is contained in:
Tomas Babej 2015-03-27 23:43:08 +01:00
parent 0391c7fcd4
commit 44d464d158

View file

@ -49,7 +49,7 @@ class IntegrationTest(object):
self.add_plugin('taskwiki')
self.add_plugin('vimwiki')
self.client.edit(os.path.join(self.dir, 'testwiki.txt'))
self.command('set filetype=vimwiki', silent=False) # TODO: fix these vimwiki loading errors
self.command('set filetype=vimwiki', silent=None) # TODO: fix these vimwiki loading errors
def teardown(self):
self.client.quit()
@ -63,6 +63,7 @@ class IntegrationTest(object):
silent = False
# For silent commands, there should be no output
if silent is not None:
assert silent == bool(not result)
# Multiline-evaluate the regex