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

Method testCreateGitTree

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

Source from the content-addressed store, hash-verified

453 self.assertEqual(blob.sha, "5dd930f591cd5188e9ea7200e308ad355182a1d8")
454
455 def testCreateGitTree(self):
456 tree = self.repo.create_git_tree(
457 [github.InputGitTreeElement("Foobar.txt", "100644", "blob", content="File created by PyGithub")]
458 )
459 self.assertEqual(tree.sha, "41cf8c178c636a018d537cb20daae09391efd70b")
460
461 def testCreateGitTreeWithBaseTree(self):
462 base_tree = self.repo.get_git_tree("41cf8c178c636a018d537cb20daae09391efd70b", recursive=False)

Callers

nothing calls this directly

Calls 1

create_git_treeMethod · 0.80

Tested by

no test coverage detected