MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testRenameFile

Method testRenameFile

tests/Gist.py:141–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 self.assertEqual(list(gist.files.keys()), ["bar.txt"])
140
141 def testRenameFile(self):
142 gist = self.g.get_gist("5339374")
143 self.assertEqual(list(gist.files.keys()), ["bar.txt"])
144 gist.edit(files={"bar.txt": github.InputFileContent(gist.files["bar.txt"].content, new_name="baz.txt")})
145 self.assertEqual(list(gist.files.keys()), ["baz.txt"])
146
147 def testCreateComment(self):
148 gist = self.g.get_gist("2729810")

Callers

nothing calls this directly

Calls 2

get_gistMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected