Run doctests verbosely, add test driver script.
Cat's Eye Technologies
9 years ago
929 | 929 |
exit_code = 0
|
930 | 930 |
if options.run_tests:
|
931 | 931 |
import doctest
|
932 | |
(fails, something) = doctest.testmod()
|
|
932 |
(fails, something) = doctest.testmod(verbose=True)
|
933 | 933 |
if fails == 0:
|
934 | 934 |
print "All tests passed."
|
935 | 935 |
exit_code = 0
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
src/pophery.py -T
|