diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2014-02-11 09:47:38 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2014-02-19 06:52:43 +0100 |
commit | 90988feebcd2f37c2715627d53b9c4a12dea51a5 (patch) | |
tree | 533ef41178c671159a2063ff13b327733bc87e77 /test/DocTests.py | |
parent | be6f3cb2696894b55720cf9063cd508ebeae9f1d (diff) | |
download | fork-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-x | test/DocTests.py | 5 |
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, |