def tearDown(self): dbmodels.destroy_tables() dbmodels.db.session.remove()
def tearDown(self): # with app.app_context(): dbmodels.destroy_tables() dbmodels.db.session.remove()