mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
tests: Let silent=None denote we don't care about the output of the command
This commit is contained in:
parent
0391c7fcd4
commit
44d464d158
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue