summaryrefslogtreecommitdiff
path: root/test/DocTests.py
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-02-20 14:00:57 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2015-02-20 14:00:57 +0100
commitf5b8fe59565ead295dce0a42b701703e24ca8e40 (patch)
treebb11e40535a9e13fcae9ad8531aa172ed3290109 /test/DocTests.py
parenta48e3014baa105576d18c28fc8a83c44b11623c3 (diff)
downloadfork-ledger-f5b8fe59565ead295dce0a42b701703e24ca8e40.tar.gz
fork-ledger-f5b8fe59565ead295dce0a42b701703e24ca8e40.tar.bz2
fork-ledger-f5b8fe59565ead295dce0a42b701703e24ca8e40.zip
[tests] Add output when skipping incomplete tests
in test/DocTests.py
Diffstat (limited to 'test/DocTests.py')
-rwxr-xr-xtest/DocTests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/DocTests.py b/test/DocTests.py
index 07cb616e..671c4d35 100755
--- a/test/DocTests.py
+++ b/test/DocTests.py
@@ -173,7 +173,7 @@ class DocTests:
except KeyError:
input = None
- if command and (output or validation):
+ if command and (output != None or validation):
test_file_created = False
if findex:
scriptpath = os.path.dirname(os.path.realpath(__file__))
@@ -208,6 +208,12 @@ class DocTests:
for line in unified_diff(output.split('\n'), verify.split('\n'), fromfile='generated', tofile='expected'):
print(line)
print
+ else:
+ if self.verbose > 0:
+ print test_id, ':', 'Skipped'
+ else:
+ sys.stdout.write('X')
+
if not self.verbose:
print
if len(failed) > 0: