def tearDown(self): db.session.remove() self._ctx.push() # Why do I need this line? db.drop_all()
def clear_db(self): db.drop_all() db.create_all()