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

Method testOAuthAuthentication

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

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

get_userMethod · 0.95
assertWarningMethod · 0.80

Tested by

no test coverage detected