summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-04-12 17:57:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-04-12 17:57:10 -0700
commitf67b161ba4993a24b735ae15c470efeb7ae6ff3f (patch)
treee90cfd12f31758d37912119ca23645f20c544309
parent9156b2f4ff73df43ed63b12ac135dbb0e22d3663 (diff)
downloadfatcat-f67b161ba4993a24b735ae15c470efeb7ae6ff3f.tar.gz
fatcat-f67b161ba4993a24b735ae15c470efeb7ae6ff3f.zip
much better test isolation
-rw-r--r--tests/test_backend.py2
1 files changed, 2 insertions, 0 deletions
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):