update test requirements

requirements should be kept up to date to ensure we get bug fixes and new features as they come - particularly py.test, which we were running an 18 month old version for, and missing out on some useful xfail and fixture enhancements, among other things
This commit is contained in:
Leo Hemsted
2016-08-30 10:41:23 +01:00
parent 4f0c5fdd9e
commit fa3d4413e7
2 changed files with 14 additions and 9 deletions

View File

@@ -24,6 +24,12 @@ def notify_api(request):
return app
@pytest.yield_fixture(scope='function')
def client(notify_api):
with notify_api.test_request_context(), notify_api.test_client() as client:
yield client
@pytest.fixture(scope='session')
def notify_db(notify_api, request):
Migrate(notify_api, db)