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

Method testBasicAuthentication

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

Source from the content-addressed store, hash-verified

65 self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques")
66
67 def testBasicAuthentication(self):
68 with self.assertWarns(DeprecationWarning) as warning:
69 g = github.Github("login", "password")
70 self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques")
71 self.assertWarning(
72 warning,
73 "Arguments login_or_token and password are deprecated, please use auth=github.Auth.Login(...) instead",
74 )
75
76 def testOAuthAuthentication(self):
77 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