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

Method testDeleteFile

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

Source from the content-addressed store, hash-verified

133 self.assertEqual(set(gist.files.keys()), {"foobar.txt", "barbaz.txt"})
134
135 def testDeleteFile(self):
136 gist = self.g.get_gist("5339374")
137 self.assertEqual(sorted(gist.files.keys()), ["bar.txt", "foo.txt"])
138 gist.edit(files={"foo.txt": None})
139 self.assertEqual(list(gist.files.keys()), ["bar.txt"])
140
141 def testRenameFile(self):
142 gist = self.g.get_gist("5339374")

Callers

nothing calls this directly

Calls 2

get_gistMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected