(self)
| 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 |
nothing calls this directly
no test coverage detected