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

Method testCreateGitCommit

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

Source from the content-addressed store, hash-verified

500 self.assertEqual(tree.sha, "9b8166fc80d0f0fe9192d4bf1dbaa87f194e012f")
501
502 def testCreateGitCommit(self):
503 tree = self.repo.get_git_tree("107139a922f33bab6fbeb9f9eb8787e7f19e0528")
504 commit = self.repo.create_git_commit("Commit created by PyGithub", tree, [])
505 self.assertEqual(commit.sha, "0b820628236ab8bab3890860fc414fa757ca15f4")
506
507 def testCreateGitCommitWithParents(self):
508 parents = [

Callers

nothing calls this directly

Calls 2

get_git_treeMethod · 0.80
create_git_commitMethod · 0.80

Tested by

no test coverage detected