From e5bfdbeb06ebb0b9caf4701bcc4e71494d3b9807 Mon Sep 17 00:00:00 2001 From: Wan Liuyang Date: Mon, 11 Dec 2017 06:46:57 +0800 Subject: [PATCH] Add unit test for tree attribute of GitCommit (#668) --- github/tests/Commit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/github/tests/Commit.py b/github/tests/Commit.py index fdb6a7e3..c1891577 100644 --- a/github/tests/Commit.py +++ b/github/tests/Commit.py @@ -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")')