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

Method testCreateGitTreeWithNullSha

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

Source from the content-addressed store, hash-verified

487 self.assertEqual(tree.sha, "fae707821159639589bf94f3fb0a7154ec5d441b")
488
489 def testCreateGitTreeWithNullSha(self):
490 tree = self.repo.create_git_tree(
491 [
492 github.InputGitTreeElement(
493 "Baz.bar",
494 "100644",
495 "blob",
496 sha=None,
497 )
498 ]
499 )
500 self.assertEqual(tree.sha, "9b8166fc80d0f0fe9192d4bf1dbaa87f194e012f")
501
502 def testCreateGitCommit(self):
503 tree = self.repo.get_git_tree("107139a922f33bab6fbeb9f9eb8787e7f19e0528")

Callers

nothing calls this directly

Calls 1

create_git_treeMethod · 0.80

Tested by

no test coverage detected