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

Method testCreateGitCommitWithAllArguments

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

Source from the content-addressed store, hash-verified

514 self.assertEqual(commit.sha, "6adf9ea25ff8a8f2a42bcb1c09e42526339037cd")
515
516 def testCreateGitCommitWithAllArguments(self):
517 tree = self.repo.get_git_tree("107139a922f33bab6fbeb9f9eb8787e7f19e0528")
518 commit = self.repo.create_git_commit(
519 "Commit created by PyGithub",
520 tree,
521 [],
522 github.InputGitAuthor("John Doe", "j.doe@vincent-jacques.net", "2008-07-09T16:13:30+12:00"),
523 github.InputGitAuthor("John Doe", "j.doe@vincent-jacques.net", "2008-07-09T16:13:30+12:00"),
524 )
525 self.assertEqual(commit.sha, "526946197ae9da59c6507cacd13ad6f1cfb686ea")
526
527 def testCreateGitRelease(self):
528 release = self.repo.create_git_release(

Callers

nothing calls this directly

Calls 2

get_git_treeMethod · 0.80
create_git_commitMethod · 0.80

Tested by

no test coverage detected