diff --git a/tests/base.py b/tests/base.py index 1cace30..9ee150e 100644 --- a/tests/base.py +++ b/tests/base.py @@ -9,9 +9,9 @@ from ogn_python import db # noqa: E402 class TestBaseDB(unittest.TestCase): @classmethod def setUpClass(cls): - db.drop_all() db.session.execute('CREATE EXTENSION IF NOT EXISTS postgis;') db.session.commit() + db.drop_all() db.create_all() def setUp(self):