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

Method testGetAccessTokenBadCode

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

Source from the content-addressed store, hash-verified

182 )
183
184 def testGetAccessTokenBadCode(self):
185 with self.assertRaises(github.BadCredentialsException) as exc:
186 self.app.get_access_token("oauth_code_removed", state="state_removed")
187 self.assertIsNone(exc.exception.message)
188 self.assertEqual(exc.exception.status, 200)
189 self.assertIn("error", exc.exception.data)
190 self.assertEqual(exc.exception.data["error"], "bad_verification_code")
191
192 def testGetAccessTokenUnknownError(self):
193 with self.assertRaises(github.GithubException) as exc:

Callers

nothing calls this directly

Calls 1

get_access_tokenMethod · 0.45

Tested by

no test coverage detected