summaryrefslogtreecommitdiff
path: root/test/DocTests.py
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2014-02-11 09:47:38 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2014-02-19 06:52:43 +0100
commit90988feebcd2f37c2715627d53b9c4a12dea51a5 (patch)
tree533ef41178c671159a2063ff13b327733bc87e77 /test/DocTests.py
parentbe6f3cb2696894b55720cf9063cd508ebeae9f1d (diff)
downloadfork-ledger-90988feebcd2f37c2715627d53b9c4a12dea51a5.tar.gz
fork-ledger-90988feebcd2f37c2715627d53b9c4a12dea51a5.tar.bz2
fork-ledger-90988feebcd2f37c2715627d53b9c4a12dea51a5.zip
DocTests: Allow multiple example inputs
to be used as single ledger data for an example command
Diffstat (limited to 'test/DocTests.py')
-rwxr-xr-xtest/DocTests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/DocTests.py b/test/DocTests.py
index a50ec03d..60d8c637 100755
--- a/test/DocTests.py
+++ b/test/DocTests.py
@@ -68,6 +68,11 @@ class DocTests:
except KeyError:
self.examples[test_id] = dict()
+ try:
+ example = self.examples[test_id][test_kind][test_kind] + example
+ except KeyError:
+ pass
+
self.examples[test_id][test_kind] = {
'bpos': test_begin_pos,
'epos': test_end_pos,