From f67b161ba4993a24b735ae15c470efeb7ae6ff3f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 12 Apr 2018 17:57:10 -0700 Subject: much better test isolation --- tests/test_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_backend.py b/tests/test_backend.py index de670a36..fdb29c47 100644 --- a/tests/test_backend.py +++ b/tests/test_backend.py @@ -26,6 +26,8 @@ class FatcatTestCase(unittest.TestCase): fatcat.app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://' fatcat.app.testing = True self.app = fatcat.app.test_client() + fatcat.db.session.remove() + fatcat.db.drop_all() fatcat.db.create_all() def test_health(self): -- cgit v1.2.3