Skip to content

Commit deea760

Browse files
author
Gasper Zejn
committed
Fix exp test.
The "parametrize" decorator is called at parse time, but the test itself is called later, which can be more than 5 seconds later, thus falling out of expiry period. Change it to one hour to make it obvious this should not be expired.
1 parent 739f44f commit deea760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def test_unverified_claims_object(self, claims, key):
584584
"claim,value", [
585585
("aud", "aud"),
586586
("ait", "ait"),
587-
("exp", datetime.utcnow() + timedelta(seconds=5)),
587+
("exp", datetime.utcnow() + timedelta(seconds=3600)),
588588
("nbf", datetime.utcnow() - timedelta(seconds=5)),
589589
("iss", "iss"),
590590
("sub", "sub"),

0 commit comments

Comments
 (0)