Skip to content

Adjust to Github API changes regarding emails#1890

Merged
s-t-e-v-e-n-k merged 2 commits intoPyGithub:masterfrom
MeggyCal:master
Mar 24, 2021
Merged

Adjust to Github API changes regarding emails#1890
s-t-e-v-e-n-k merged 2 commits intoPyGithub:masterfrom
MeggyCal:master

Conversation

@MeggyCal
Copy link
Copy Markdown
Contributor

Closes #1852

Copy link
Copy Markdown
Collaborator

@s-t-e-v-e-n-k s-t-e-v-e-n-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking like a great start, I have some concerns inline.

@MeggyCal MeggyCal force-pushed the master branch 5 times, most recently from ac86ebe to 85cc405 Compare March 23, 2021 16:17
@MeggyCal MeggyCal force-pushed the master branch 2 times, most recently from a13f6df to 9c0c522 Compare March 24, 2021 08:21
def testEmails(self):
self.assertEqual(
self.user.get_emails(),
[item.email for item in self.user.get_emails()],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably need to pull this out of the list comprehension so you check at least primary and hopefully the other two for the first element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AuthenticatedUser.get_emails() returned data changed to list of dicts

2 participants