|
Revision 1504, 397 bytes
(checked in by mattrussell, 8 months ago)
|
|
Simplify code. Remove custom mapping object. add more tests for falling through to json, crs and strict json. Fixes #186
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | import doctest |
|---|
| 2 | import glob |
|---|
| 3 | import os |
|---|
| 4 | |
|---|
| 5 | optionflags = (doctest.REPORT_ONLY_FIRST_FAILURE | |
|---|
| 6 | doctest.NORMALIZE_WHITESPACE | |
|---|
| 7 | doctest.ELLIPSIS) |
|---|
| 8 | |
|---|
| 9 | _basedir = os.path.dirname(__file__) |
|---|
| 10 | paths = glob.glob("%s/*.txt" % _basedir) |
|---|
| 11 | test_suite = doctest.DocFileSuite(*paths, **dict(module_relative=False, |
|---|
| 12 | optionflags=optionflags)) |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|