Skip to content

Commit 1219d69

Browse files
committed
fix:lint
1 parent 6098e00 commit 1219d69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_token_gen.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -559,19 +559,19 @@ def test_expired_token(self, user_mgt_app):
559559
assert 'Token expired' in str(excinfo.value)
560560
assert excinfo.value.cause is not None
561561
assert excinfo.value.http_response is None
562-
562+
563563
def test_expired_token_with_tolerance(self, user_mgt_app):
564564
_overwrite_cert_request(user_mgt_app, MOCK_REQUEST)
565565
id_token = self.invalid_tokens['ExpiredTokenShort']
566566
if _is_emulated():
567567
self._assert_valid_token(id_token, user_mgt_app)
568568
return
569-
claims = auth.verify_id_token(id_token, app=user_mgt_app,
569+
claims = auth.verify_id_token(id_token, app=user_mgt_app,
570570
clock_skew_seconds=60)
571571
assert claims['admin'] is True
572572
assert claims['uid'] == claims['sub']
573-
with pytest.raises(auth.ExpiredIdTokenError) as excinfo:
574-
auth.verify_id_token(id_token, app=user_mgt_app,
573+
with pytest.raises(auth.ExpiredIdTokenError):
574+
auth.verify_id_token(id_token, app=user_mgt_app,
575575
clock_skew_seconds=20)
576576

577577
def test_project_id_option(self):
@@ -749,7 +749,7 @@ def test_expired_cookie_with_tolerance(self, user_mgt_app):
749749
clock_skew_seconds=59)
750750
assert claims['admin'] is True
751751
assert claims['uid'] == claims['sub']
752-
with pytest.raises(auth.ExpiredSessionCookieError) as excinfo:
752+
with pytest.raises(auth.ExpiredSessionCookieError):
753753
auth.verify_session_cookie(cookie, app=user_mgt_app, check_revoked=False,
754754
clock_skew_seconds=29)
755755

0 commit comments

Comments
 (0)