Add test to disallow regression

This commit is contained in:
Bert JW Regeer 2017-03-31 12:48:08 +02:00
parent 5f1804fd4b
commit ecfd1796a7
1 changed files with 4 additions and 2 deletions

View File

@ -35,5 +35,7 @@ def test_paste_app_factory(conf_options, monkeypatch):
lambda **x: (x, [x.keys()]))
pypiserver.paste_app_factory({}, **conf_options)
def test_app_factory(monkeypatch):
monkeypatch.setattr('pypiserver.core.configure',
lambda **x: (x, [x.keys()]))
assert pypiserver.app() is not pypiserver.app()