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

Method testDeprecatedAppAuth

tests/GithubIntegration.py:133–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 self.user_installation_id = 30614431
132
133 def testDeprecatedAppAuth(self):
134 # Replay data copied from testGetInstallations to test authentication only
135 with self.assertWarns(DeprecationWarning) as warning:
136 github_integration = github.GithubIntegration(integration_id=APP_ID, private_key=PRIVATE_KEY)
137 installations = github_integration.get_installations()
138 self.assertEqual(len(list(installations)), 2)
139 self.assertWarning(
140 warning,
141 "Arguments integration_id, private_key, jwt_expiry, jwt_issued_at and "
142 "jwt_algorithm are deprecated, please use auth=github.Auth.AppAuth(...) "
143 "instead",
144 )
145
146 def testRequiredAppAuth(self):
147 # GithubIntegration requires AppAuth authentication.

Callers

nothing calls this directly

Calls 2

get_installationsMethod · 0.95
assertWarningMethod · 0.80

Tested by

no test coverage detected