Fix app installation login in test helper
@@ -55,15 +55,14 @@ class IntegrationHelper(unittest.TestCase):
self.current_cassette.is_recording()
and self.private_key_bytes
and self.app_id
- and self.installation_id
+ and self.app_installation_id
):
self.gh.login_as_app_installation(
self.private_key_bytes,
app_id=self.app_id,
installation_id=self.app_installation_id,
- expire_in=30,
)
- token = self.gh.session.auth
+ token = self.gh.session.auth.token
else:
token = "v1.{}".format("x" * 10)
now = datetime.datetime.now(tz=dateutil.tz.UTC)
