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

Method testGetInstallationNotFound

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

Source from the content-addressed store, hash-verified

296 self.assertEqual(installation.id, self.org_installation_id)
297
298 def testGetInstallationNotFound(self):
299 auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY)
300 github_integration = github.GithubIntegration(auth=auth)
301 with self.assertRaises(github.UnknownObjectException) as raisedexp:
302 github_integration.get_org_installation(org="GithubApp-Test-Org-404")
303
304 self.assertEqual(raisedexp.exception.status, 404)
305
306 def testGetInstallationWithExpiredJWT(self):
307 auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY)

Callers

nothing calls this directly

Calls 1

get_org_installationMethod · 0.95

Tested by

no test coverage detected