summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-03-04 13:49:16 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-03-05 15:23:50 (GMT)
commite0b789fb3ce49a0a6fa325820ef62da9a9cc0bcd (patch)
tree7788bc124eaadbe5d35ec950466e82982d05d25a /setup.py
parentdb67c3887d635ee8126bbf95ed4571c8dc8adab4 (diff)
downloadeopayment-e0b789fb3ce49a0a6fa325820ef62da9a9cc0bcd.zip
eopayment-e0b789fb3ce49a0a6fa325820ef62da9a9cc0bcd.tar.gz
eopayment-e0b789fb3ce49a0a6fa325820ef62da9a9cc0bcd.tar.bz2
Use doctests as parts of tests, fix some of them
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 13353ac..7241be9 100755
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,7 @@ from glob import glob
from os.path import splitext, basename, join as pjoin
import os
from unittest import TextTestRunner, TestLoader
+import doctest
class TestCommand(distutils.core.Command):
user_options = [ ]
@@ -32,6 +33,8 @@ class TestCommand(distutils.core.Command):
)
tests = TestLoader().loadTestsFromNames(testfiles)
+ import eopayment
+ tests.addTests(doctest.DocTestSuite(eopayment))
t = TextTestRunner(verbosity = 4)
t.run(tests)