@@ -559,19 +559,19 @@ def test_expired_token(self, user_mgt_app):
559
559
assert 'Token expired' in str (excinfo .value )
560
560
assert excinfo .value .cause is not None
561
561
assert excinfo .value .http_response is None
562
-
562
+
563
563
def test_expired_token_with_tolerance (self , user_mgt_app ):
564
564
_overwrite_cert_request (user_mgt_app , MOCK_REQUEST )
565
565
id_token = self .invalid_tokens ['ExpiredTokenShort' ]
566
566
if _is_emulated ():
567
567
self ._assert_valid_token (id_token , user_mgt_app )
568
568
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 ,
570
570
clock_skew_seconds = 60 )
571
571
assert claims ['admin' ] is True
572
572
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 ,
575
575
clock_skew_seconds = 20 )
576
576
577
577
def test_project_id_option (self ):
@@ -749,7 +749,7 @@ def test_expired_cookie_with_tolerance(self, user_mgt_app):
749
749
clock_skew_seconds = 59 )
750
750
assert claims ['admin' ] is True
751
751
assert claims ['uid' ] == claims ['sub' ]
752
- with pytest .raises (auth .ExpiredSessionCookieError ) as excinfo :
752
+ with pytest .raises (auth .ExpiredSessionCookieError ):
753
753
auth .verify_session_cookie (cookie , app = user_mgt_app , check_revoked = False ,
754
754
clock_skew_seconds = 29 )
755
755
0 commit comments