def tearDown(self): with self.app.app_context(): db.session.remove() db.drop_all()
def tearDown(self): db.session.remove() db.drop_all() self.app_context.pop()