(self)
| 459 | self.assertEqual(tree.sha, "41cf8c178c636a018d537cb20daae09391efd70b") |
| 460 | |
| 461 | def testCreateGitTreeWithBaseTree(self): |
| 462 | base_tree = self.repo.get_git_tree("41cf8c178c636a018d537cb20daae09391efd70b", recursive=False) |
| 463 | tree = self.repo.create_git_tree( |
| 464 | [ |
| 465 | github.InputGitTreeElement( |
| 466 | "Barbaz.txt", |
| 467 | "100644", |
| 468 | "blob", |
| 469 | content="File also created by PyGithub", |
| 470 | ) |
| 471 | ], |
| 472 | base_tree, |
| 473 | ) |
| 474 | self.assertEqual(tree.sha, "107139a922f33bab6fbeb9f9eb8787e7f19e0528") |
| 475 | |
| 476 | def testCreateGitTreeWithSha(self): |
| 477 | tree = self.repo.create_git_tree( |
nothing calls this directly
no test coverage detected