Skip to content

Commit 3b275d2

Browse files
docs(test): expand test docstring for backward compatibility test
1 parent b93be34 commit 3b275d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_security/test_jwt/test_token.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ def test_decode_with_leeway_does_not_allow_long_expired_token() -> None:
380380

381381

382382
def test_decode_with_leeway_backward_compat_subclass() -> None:
383-
"""Test that a subclass overriding decode_payload without leeway still works."""
383+
"""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+
"""
384387

385388
@dataclasses.dataclass
386389
class LegacyToken(Token):

0 commit comments

Comments
 (0)