Mercurial > hg > simpypi
diff tests/test.py @ 32:486a4640fc31
fix test harness
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 29 Feb 2012 20:25:19 -0800 |
parents | 90777e79ea13 |
children | 143adebe4caa |
line wrap: on
line diff
--- a/tests/test.py Wed Feb 29 20:21:02 2012 -0800 +++ b/tests/test.py Wed Feb 29 20:25:19 2012 -0800 @@ -1,7 +1,7 @@ #!/usr/bin/env python """ -doctest runner +doctest runner for simpypi tests """ import doctest @@ -10,15 +10,6 @@ import sys import tempfile from optparse import OptionParser -from paste.fixture import TestApp -import simpypi.factory import factory - -class SimpypiTestApp(TestApp): - """WSGI app wrapper for testing simpypi""" - - def __init__(self, directory): - app = factory(directory=directory) - TestApp.__init__(self, app) def run_tests(raise_on_error=False, report_first=False): @@ -43,9 +34,6 @@ tmpdir = tempfile.mkdtemp() doctest_args['extraglobs']['directory'] = tmpdir - # make a test WSGI app - app = simpypi. - try: results[test] = doctest.testfile(test, **doctest_args) except doctest.DocTestFailure, failure: