New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add two_factor_authentication in AuthenticatedUser. #1972
Conversation
tests/AuthenticatedUser.py
Outdated
@@ -76,6 +76,7 @@ def testAttributes(self): | |||
self.assertEqual(self.user.url, "https://api.github.com/users/jacquev6") | |||
self.assertEqual(self.user.node_id, "MDQ6VXNlcjMyNzE0Ng==") | |||
self.assertEqual(repr(self.user), 'AuthenticatedUser(login="jacquev6")') | |||
self.assertEqual(self.user.two_factor_authentication, True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.assertTrue() please
Further more, please run |
Codecov Report
@@ Coverage Diff @@
## master #1972 +/- ##
=======================================
Coverage 98.86% 98.86%
=======================================
Files 108 108
Lines 11065 11072 +7
=======================================
+ Hits 10939 10946 +7
Misses 126 126
Continue to review full report at Codecov.
|
I try a new Python 3.6.13 virtualenv, install the newest tox(3.23.1) in my local. The master branch could not pass the lint. Missing the |
I find the difference!. The pre success CI uses the mypy==0.812. See the Action log: https://github.com/PyGithub/PyGithub/runs/2724801619#step:5:10. And now it uses the mypy==0.902. It has a breaking change:
|
You can revert that tox.ini change, I have a separate PR up that I will merge that adds that. |
Done. |
closes #1971