mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Unittest - Bring back diag() for generating TAP output
* Still needs work to make sure output is displayed after the test status (not ok ...) and not before.
This commit is contained in:
parent
75fe62149d
commit
d354d13263
10 changed files with 32 additions and 16 deletions
15
test/basetest/testing.py
Normal file
15
test/basetest/testing.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import unittest
|
||||
import sys
|
||||
|
||||
|
||||
class TestCase(unittest.TestCase):
|
||||
def diag(self, out):
|
||||
sys.stdout.write("# --- diag start ---\n")
|
||||
for line in out.split("\n"):
|
||||
sys.stdout.write("#" + line + "\n")
|
||||
sys.stdout.write("# --- diag end ---\n")
|
||||
|
||||
|
||||
# vim: ai sts=4 et sw=4
|
Loading…
Add table
Add a link
Reference in a new issue