Skip to content

Commit 6606a34

Browse files
committed
Fix app installation login in test helper
1 parent 3f43b7e commit 6606a34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/integration/helper.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,14 @@ def app_installation_login(self):
5555
self.current_cassette.is_recording()
5656
and self.private_key_bytes
5757
and self.app_id
58-
and self.installation_id
58+
and self.app_installation_id
5959
):
6060
self.gh.login_as_app_installation(
6161
self.private_key_bytes,
6262
app_id=self.app_id,
6363
installation_id=self.app_installation_id,
64-
expire_in=30,
6564
)
66-
token = self.gh.session.auth
65+
token = self.gh.session.auth.token
6766
else:
6867
token = "v1.{}".format("x" * 10)
6968
now = datetime.datetime.now(tz=dateutil.tz.UTC)

0 commit comments

Comments
 (0)