mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Unittest - Clarify documentation of runSuccess/runError
This commit is contained in:
parent
72823a453f
commit
27f21d375b
1 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ class Task(object):
|
|||
return run_cmd_wait(cmd, env=self.env)
|
||||
|
||||
def runSuccess(self, args=(), input=None, merge_streams=True):
|
||||
"""Invoke task with the given arguments
|
||||
"""Invoke task with given arguments and fail if exit code != 0
|
||||
|
||||
Use runError if you want exit_code to be tested automatically and
|
||||
*not* fail if program finishes abnormally.
|
||||
|
@ -282,7 +282,7 @@ class Task(object):
|
|||
return output
|
||||
|
||||
def runError(self, args=(), input=None, merge_streams=True):
|
||||
"""Same as runSuccess but Invoke task with the given arguments
|
||||
"""Invoke task with given arguments and fail if exit code == 0
|
||||
|
||||
Use runSuccess if you want exit_code to be tested automatically and
|
||||
*fail* if program finishes abnormally.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue