8000 Fix lint · davedoesdev/python-jwt@fedc677 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit fedc677

Browse files
committed
Fix lint
1 parent 3d9747d commit fedc677

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/jwt_spec.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def is_string(obj):
1919
except TypeError:
2020
return False
2121

22-
#pylint: disable=R0912
22+
#pylint: disable=R0912,too-many-locals,too-many-statements
2323
def _setup(alg, priv_type, pub_type, exp, iat_skew, nbf, jti_size, keyless, expected):
2424
""" setup tests """
2525
privk = None if keyless else priv_keys[alg][priv_type]
@@ -49,6 +49,7 @@ def jti_size_should_be_as_expected(self, claims):
4949
expect(len(base64url_decode(claims['jti']))).to_equal(jti_size)
5050

5151
class UniqueClaimsChecker(ClaimsChecker):
52+
""" Check JTIs in token are unique """
5253
def jtis_should_be_unique(self, claims):
5354
""" Check jtis """
5455
if jti_size or callable(privk):
@@ -106,8 +107,10 @@ def topic(self, topic):
106107
return jwt.process_jwt(sjwt)
107108

108109
class CheckClaims(UniqueClaimsChecker):
110+
""" Check claims """
109111
pass
110112
class CheckHeader(HeaderChecker):
113+
""" Check header """
111114
pass
112115

113116
class VerifyJWTWithGeneratedKey(Vows.Context):
@@ -128,8 +131,10 @@ def topic(self, topic):
128131

129132
if keyless and expected:
130133
class CheckClaims(ClaimsChecker):
134+
""" Check claims """
131135
pass
132136
class CheckHeader(HeaderChecker):
137+
""" Check header """
133138
pass
134139
else:
135140
def should_fail_to_verify(self, r):
@@ -150,8 +155,10 @@ def topic(self, topic):
150155

151156
if expected:
152157
class CheckClaims(ClaimsChecker):
158+
""" Check claims """
153159
pass
154160
class CheckHeader(HeaderChecker):
161+
""" Check header """
155162
pass
156163
else:
157164
def should_fail_to_verify(self, r):

0 commit comments

Comments
 (0)
0