mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Added a 'diag' method to the Python test class.
This commit is contained in:
parent
7a37317526
commit
5e1f596200
1 changed files with 8 additions and 0 deletions
|
@ -159,5 +159,13 @@ class BaseTestCase(unittest.TestCase):
|
|||
assert out[0] != 0, "Task finished with zero exit (0) code"
|
||||
return out
|
||||
|
||||
@classmethod
|
||||
def diag(cls, out):
|
||||
"""Diagnostics are just lines preceded with #.
|
||||
"""
|
||||
print '# --- diag start ---'
|
||||
for line in out.split("\n"):
|
||||
print '#', line
|
||||
print '# --- diag end ---'
|
||||
|
||||
# vim: ai sts=4 et sw=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue