MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testRefreshAccessTokenBadCode

Method testRefreshAccessTokenBadCode

tests/ApplicationOAuth.py:200–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 self.assertEqual(exc.exception.data["error"], "some_unknown_error")
199
200 def testRefreshAccessTokenBadCode(self):
201 with self.assertRaises(github.BadCredentialsException) as exc:
202 self.app.refresh_access_token("oauth_code_removed")
203 self.assertIsNone(exc.exception.message)
204 self.assertEqual(exc.exception.status, 200)
205 self.assertIn("error", exc.exception.data)
206 self.assertEqual(exc.exception.data["error"], "bad_verification_code")
207
208 def testRefreshAccessTokenUnknownError(self):
209 with self.assertRaises(github.GithubException) as exc:

Callers

nothing calls this directly

Calls 1

refresh_access_tokenMethod · 0.80

Tested by

no test coverage detected