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

Method testCreateFile

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

Source from the content-addressed store, hash-verified

1807 self.assertListEqual([d.number for d in discussions], [2938, 2495, 2559, 2104, 2539, 2480])
1808
1809 def testCreateFile(self):
1810 newFile = "doc/testCreateUpdateDeleteFile.md"
1811 content = b"Hello world"
1812 author = github.InputGitAuthor("Enix Yu", "enix223@163.com", "2016-01-15T16:13:30+12:00")
1813 self.assertEqual(repr(author), 'InputGitAuthor(name="Enix Yu")')
1814 self.repo.create_file(
1815 path=newFile,
1816 message="Create file for testCreateFile",
1817 content=content,
1818 branch="master",
1819 committer=author,
1820 author=author,
1821 )
1822
1823 def testUpdateFile(self):
1824 updateFile = "doc/testCreateUpdateDeleteFile.md"

Callers

nothing calls this directly

Calls 1

create_fileMethod · 0.80

Tested by

no test coverage detected