Mercurial > hg > simpypi
diff tests/test.py @ 56:2e60fb704454
add test server to the test globs
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 15:32:17 -0800 |
parents | 143adebe4caa |
children | 6bfe6c59b64a |
line wrap: on
line diff
--- a/tests/test.py Thu Mar 01 15:28:34 2012 -0800 +++ b/tests/test.py Thu Mar 01 15:32:17 2012 -0800 @@ -9,6 +9,7 @@ import shutil import sys import tempfile +import testserver import virtualenv from optparse import OptionParser @@ -28,7 +29,9 @@ # doctest arguments directory = os.path.dirname(os.path.abspath(__file__)) - extraglobs = {'here': directory, 'create_virtualenv': create_virtualenv} + extraglobs = {'here': directory, + 'create_virtualenv': create_virtualenv, + 'server': testserver.TestWSGIserver } doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) if report_first: doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE