(self)
| 74 | ) |
| 75 | |
| 76 | def testOAuthAuthentication(self): |
| 77 | with self.assertWarns(DeprecationWarning) as warning: |
| 78 | g = github.Github(self.oauth_token.token) |
| 79 | self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") |
| 80 | self.assertWarning( |
| 81 | warning, |
| 82 | "Argument login_or_token is deprecated, please use auth=github.Auth.Token(...) instead", |
| 83 | ) |
| 84 | |
| 85 | def testJWTAuthentication(self): |
| 86 | with self.assertWarns(DeprecationWarning) as warning: |
nothing calls this directly
no test coverage detected