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
|
||||
|
||||
with app.app_context():
|
||||
db.drop_all()
|
||||
db.create_all()
|
||||
yield db
|
||||
db.drop_all()
|
||||
|
Reference in New Issue
Block a user