mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Add unit test for tree attribute of GitCommit (#668)
This commit is contained in:
@@ -54,6 +54,7 @@ class Commit(Framework.TestCase):
|
||||
self.assertEqual(self.commit.stats.additions, 0)
|
||||
self.assertEqual(self.commit.stats.total, 20)
|
||||
self.assertEqual(self.commit.url, "https://api.github.com/repos/jacquev6/PyGithub/commits/1292bf0e22c796e91cc3d6e24b544aece8c21f2a")
|
||||
self.assertEqual(self.commit.commit.tree.sha, "4c6bd50994f0f9823f898b1c6c964ad7d4fa11ab")
|
||||
|
||||
# test __repr__() based on this attributes
|
||||
self.assertEqual(self.commit.__repr__(), 'Commit(sha="1292bf0e22c796e91cc3d6e24b544aece8c21f2a")')
|
||||
|
||||
Reference in New Issue
Block a user