Revert "Remove NamedUser.contributions (#774)" (#865)

This reverts commit a519e4675a.

NamedUser.contributions can be populated, so we should fill in the data.

Fixes #850
This commit is contained in:
Steve Kowalik
2018-08-15 11:39:08 +08:00
committed by Wan Liuyang
parent a7c16c64d6
commit b91dee8df6
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class Repository(Framework.TestCase):
repo.delete()
def testGetContributors(self):
self.assertListKeyEqual(self.repo.get_contributors(), lambda c: c.login, ["jacquev6"])
self.assertListKeyEqual(self.repo.get_contributors(), lambda c: (c.login, c.contributions), [("jacquev6", 355)])
def testCreateMilestone(self):
milestone = self.repo.create_milestone("Milestone created by PyGithub", state="open", description="Description created by PyGithub", due_on=datetime.date(2012, 6, 15))