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