(self)
| 83 | ) |
| 84 | |
| 85 | def testJWTAuthentication(self): |
| 86 | with self.assertWarns(DeprecationWarning) as warning: |
| 87 | g = github.Github(jwt=self.jwt.token) |
| 88 | self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") |
| 89 | self.assertWarning( |
| 90 | warning, |
| 91 | "Argument jwt is deprecated, please use auth=github.Auth.AppAuth(...) or " |
| 92 | "auth=github.Auth.AppAuthToken(...) instead", |
| 93 | ) |
| 94 | |
| 95 | def testAppAuthentication(self): |
| 96 | with self.assertWarns(DeprecationWarning) as warning: |
nothing calls this directly
no test coverage detected