Update db test fixture to drop both before and after tests
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user