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

Method testUpdateFile

tests/Repository.py:1823–1835  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1821 )
1822
1823 def testUpdateFile(self):
1824 updateFile = "doc/testCreateUpdateDeleteFile.md"
1825 content = "Hello World"
1826 sha = self.repo.get_contents(updateFile).sha
1827 self.repo.update_file(
1828 path=updateFile,
1829 message="Update file for testUpdateFile",
1830 content=content,
1831 sha=sha,
1832 branch="master",
1833 committer=github.InputGitAuthor("Enix Yu", "enix223@163.com", "2016-01-15T16:13:30+12:00"),
1834 author=github.InputGitAuthor("Enix Yu", "enix223@163.com", "2016-01-15T16:13:30+12:00"),
1835 )
1836
1837 def testDeleteFile(self):
1838 deleteFile = "doc/testCreateUpdateDeleteFile.md"

Callers

nothing calls this directly

Calls 2

get_contentsMethod · 0.80
update_fileMethod · 0.80

Tested by

no test coverage detected