def tearDown(self): db.session.remove() db.drop_all() os.close(self.fd) os.unlink(self.db)
def create_db(): db.drop_all() db.create_all() db.session.commit()
def tearDown(self): db.session.remove() db.drop_all()