Implement log_in_user

This commit is contained in:
richard-dds
2018-08-03 14:13:21 -04:00
committed by dandds
parent df0b4e64c0
commit 13146e9362
9 changed files with 76 additions and 95 deletions

View File

@@ -16,10 +16,9 @@ def app(request):
ctx = _app.app_context()
ctx.push()
def teardown():
ctx.pop()
yield _app
return _app
ctx.pop()
def apply_migrations():
@@ -34,9 +33,6 @@ def apply_migrations():
@pytest.fixture(scope='session')
def db(app, request):
def teardown():
_db.drop_all()
_db.app = app
apply_migrations()