Skip to content

Commit 1edd4aa

Browse files
committed
Added a better explanation for TestJWT and why it exists.
1 parent 086d96f commit 1edd4aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_jwt.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ def utc_timestamp():
1111

1212

1313
class TestJWT(unittest.TestCase):
14-
14+
"""
15+
These tests exist primarily to ensure that calls to jwt.encode and
16+
jwt.decode don't explode. Most functionality is tested by the PyJWT class
17+
tests. This is primarily a sanity check to make sure we don't break the
18+
public global functions.
19+
"""
1520
def setUp(self): # noqa
1621
self.payload = {'iss': 'jeff', 'exp': utc_timestamp() + 15,
1722
'claim': 'insanity'}

0 commit comments

Comments
 (0)