def setUp(self): """Create the testing database, then swap commit for flush""" db.create_all() self.orig_commit = db.session.commit db.session.commit = db.session.flush
def setUp(self): db.create_all()