From 803c53a60548e30011aea0b690c2e38a475716f3 Mon Sep 17 00:00:00 2001 From: Alan Pryor Date: Sat, 3 Aug 2019 12:57:22 -0400 Subject: [PATCH] Update db test fixture to drop both before and after tests --- app/test/fixtures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/fixtures.py b/app/test/fixtures.py index d83bee5..195c318 100644 --- a/app/test/fixtures.py +++ b/app/test/fixtures.py @@ -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()