mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Remove NamedUser.contributions (#774)
The contributions attribute is no longer sent by Github for NamedUsers, so remove the attribute. Fixes #443
This commit is contained in:
committed by
Wan Liuyang
parent
b1e9ae68a2
commit
a519e4675a
@@ -198,7 +198,7 @@ class Repository(Framework.TestCase):
|
||||
repo.delete()
|
||||
|
||||
def testGetContributors(self):
|
||||
self.assertListKeyEqual(self.repo.get_contributors(), lambda c: (c.login, c.contributions), [("jacquev6", 355)])
|
||||
self.assertListKeyEqual(self.repo.get_contributors(), lambda c: c.login, ["jacquev6"])
|
||||
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user