Mercurial > hg > simpypi
changeset 61:53ec5144f84f
start serving PyPI
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 15:59:18 -0800 |
parents | 46f5fd27ee54 |
children | 7c154953acc4 |
files | tests/test.py tests/test_ttw.txt |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test.py Thu Mar 01 15:45:39 2012 -0800 +++ b/tests/test.py Thu Mar 01 15:59:18 2012 -0800 @@ -35,7 +35,7 @@ directory = os.path.dirname(os.path.abspath(__file__)) extraglobs = {'here': directory, 'create_virtualenv': create_virtualenv, - 'server': testserver.TestWSGIServer } + 'testserver': testserver.TestWSGIServer } doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error) if report_first: doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE
--- a/tests/test_ttw.txt Thu Mar 01 15:45:39 2012 -0800 +++ b/tests/test_ttw.txt Thu Mar 01 15:59:18 2012 -0800 @@ -10,3 +10,12 @@ Create a WSGI app:: >>> app = factory(directory=directory) + +Now wrap it in a server:: + + >>> server = testserver(app, 'localhost', 64321) + >>> server.start() + +Shut down the server:: + + >>> server.stop()