fix db error on second login

This commit is contained in:
2021-06-22 17:35:27 +02:00
parent b09b072261
commit 5d259635a2
4 changed files with 49 additions and 1 deletions

View File

@ -15,12 +15,15 @@ class TestProfileEndpoint(unittest.TestCase):
self.client = app.test_client()
with app.app_context():
db.drop_all()
db.engine.dispose()
config = migrate.get_config()
command.upgrade(config, "head")
seed()
def tearDown(self):
db.drop_all()
db.engine.dispose()
def test_create_profile(self):