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

Method testGetInstallations

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

Source from the content-addressed store, hash-verified

165 github.GithubIntegration(auth=None)
166
167 def testGetInstallations(self):
168 auth = github.Auth.AppAuth(APP_ID, PRIVATE_KEY)
169 github_integration = github.GithubIntegration(auth=auth)
170 installations = github_integration.get_installations()
171
172 self.assertEqual(len(list(installations)), 2)
173 self.assertEqual(installations[0].id, self.org_installation_id)
174 self.assertEqual(installations[1].id, self.repo_installation_id)
175
176 def testGetGithubForInstallation(self):
177 # with verify=False, urllib3.connectionpool rightly may issue an InsecureRequestWarning

Callers

nothing calls this directly

Calls 1

get_installationsMethod · 0.95

Tested by

no test coverage detected