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

Method testCreateGitTreeWithSha

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

Source from the content-addressed store, hash-verified

474 self.assertEqual(tree.sha, "107139a922f33bab6fbeb9f9eb8787e7f19e0528")
475
476 def testCreateGitTreeWithSha(self):
477 tree = self.repo.create_git_tree(
478 [
479 github.InputGitTreeElement(
480 "Barbaz.txt",
481 "100644",
482 "blob",
483 sha="5dd930f591cd5188e9ea7200e308ad355182a1d8",
484 )
485 ]
486 )
487 self.assertEqual(tree.sha, "fae707821159639589bf94f3fb0a7154ec5d441b")
488
489 def testCreateGitTreeWithNullSha(self):
490 tree = self.repo.create_git_tree(

Callers

nothing calls this directly

Calls 1

create_git_treeMethod · 0.80

Tested by

no test coverage detected