test_snapshot.py 文件源码

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

项目:pyecharts-snapshot 作者: chfw 项目源码 文件源码
def test_main(self):
        self.fake_popen.return_value.stdout = BytesIO(get_base64_image())
        args = ['snapshot', HTML_FILE]
        with patch.object(sys, 'argv', args):
            main()
        assert(filecmp.cmp('output.png', get_fixture('sample.png')))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号