We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93be34 commit 3b275d2Copy full SHA for 3b275d2
tests/unit/test_security/test_jwt/test_token.py
@@ -380,7 +380,10 @@ def test_decode_with_leeway_does_not_allow_long_expired_token() -> None:
380
381
382
def test_decode_with_leeway_backward_compat_subclass() -> None:
383
- """Test that a subclass overriding decode_payload without leeway still works."""
+ """Test that a subclass overriding decode_payload without the leeway parameter still works.
384
+
385
+ This verifies the backward-compatibility try/except TypeError path in Token.decode.
386
+ """
387
388
@dataclasses.dataclass
389
class LegacyToken(Token):
0 commit comments