Gist.py 文件源码

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

项目:hudl-bugbounty 作者: lewislabs 项目源码 文件源码
def testRenameFile(self):
        gist = self.g.get_gist("5339374")
        self.assertEqual(gist.files.keys(), ["bar.txt"])
        gist.edit(files={"bar.txt": github.InputFileContent(gist.files["bar.txt"].content, new_name="baz.txt")})
        self.assertEqual(gist.files.keys(), ["baz.txt"])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号