Skip to content

Commit 9148a3f

Browse files
committed
chore: address CR
1 parent 7ae857e commit 9148a3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration/test_auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,11 +601,11 @@ def test_verify_id_token_revoked(new_user, api_key):
601601
assert claims['iat'] * 1000 >= user.tokens_valid_after_timestamp
602602

603603
def test_verify_id_token_tolerance(new_user, api_key):
604-
expired_id_token = _sign_in_with_password(new_user.email, 'password', api_key)
604+
expired_id_token = _sign_in_with_password(new_user_with_params())
605605
time.sleep(1)
606606
# Verify the ID token with a tolerance of 0 seconds. This should
607607
# raise an exception because the token is expired.
608-
with pytest.raises(auth.InvalidIdTokenError) as excinfo:
608+
with pytest.raises(auth.ExpiredIdTokenError) as excinfo:
609609
auth.verify_id_token(expired_id_token, check_revoked=False, clock_skew_seconds=0)
610610
assert str(excinfo.value) == 'The Firebase ID token is expired.'
611611

@@ -661,7 +661,7 @@ def test_verify_session_cookie_tolerance(new_user, api_key):
661661
time.sleep(3)
662662
# Verify the session cookie with a tolerance of 0 seconds. This should
663663
# raise an exception because the cookie is expired.
664-
with pytest.raises(auth.InvalidSessionCookieError) as excinfo:
664+
with pytest.raises(auth.ExpiredSessionCookieError) as excinfo:
665665
auth.verify_session_cookie(expired_session_cookie, check_revoked=False,
666666
clock_skew_seconds=0)
667667
assert str(excinfo.value) == 'The Firebase session cookie is expired.'

0 commit comments

Comments
 (0)