Update db test fixture to drop both before and after tests

This commit is contained in:
Alan Pryor 2019-08-03 12:57:22 -04:00
parent 9b136b1ffa
commit 803c53a605

View File

@ -18,6 +18,7 @@ def db(app):
from app import db from app import db
with app.app_context(): with app.app_context():
db.drop_all()
db.create_all() db.create_all()
yield db yield db
db.drop_all() db.drop_all()