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

Method testJWTAuthentication

tests/Authentication.py:85–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

get_userMethod · 0.95
assertWarningMethod · 0.80

Tested by

no test coverage detected