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