test_comment.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:mini 作者: JJWSSS 项目源码 文件源码
def setUp(self):
        self.app = create_app('comment')
        self.app_context = self.app.app_context()
        self.app_context.push()
        db.init_app(self.app)
        db.create_all()

        table_structs = self.app.config.get('COMMENT_TABLE_STRUCTS')
        table_structs = copy.deepcopy(table_structs)
        table_structs.pop('__tablename__')
        self.proxy = CommentProxy([key for key, value in table_structs.items()])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号