def setUp(self):
self.db_fd, self.db_filename = tempfile.mkstemp()
# FIXME: this isn't actually working.
app.config['DATABASE_URI'] = 'sqlite:///' + self.db_filename
self.app = app.test_client()
db.create_all()
评论列表
文章目录