changeset 32:486a4640fc31

fix test harness
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 20:25:19 -0800
parents 4990fe59974a
children 058182b7b309
files tests/test.py
diffstat 1 files changed, 1 insertions(+), 13 deletions(-) [+]
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: