Mercurial > hg > simpypi
diff tests/test.py @ 18:90777e79ea13
fix up factory (i hope)
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 28 Feb 2012 15:47:05 -0800 |
parents | 9879140a2026 |
children | 486a4640fc31 |
line wrap: on
line diff
--- a/tests/test.py Tue Feb 28 15:38:46 2012 -0800 +++ b/tests/test.py Tue Feb 28 15:47:05 2012 -0800 @@ -7,16 +7,18 @@ import doctest import os import shutil -import simpypi 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):