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

Commit 87c0d7a

Browse files
committed
Fix lint
1 parent d79958c commit 87c0d7a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/other_headers_vows.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
def other_headers(alg, key):
99
""" setup tests """
1010
@Vows.batch
11+
#pylint: disable=unused-variable
1112
class OtherHeaders(Vows.Context):
1213
""" Check extra header value is set in token """
1314
def topic(self):
1415
""" Generate token """
1516
return jwt.generate_jwt(payload, key, alg, timedelta(seconds=60),
16-
other_headers={ 'kid': '0123456789abcdef' })
17+
other_headers={'kid': '0123456789abcdef'})
1718

1819
class Verify(Vows.Context):
1920
""" Verify token """
@@ -32,27 +33,29 @@ def token_should_verify_with_extra_header(self, r):
3233
})
3334

3435
@Vows.batch
36+
#pylint: disable=unused-variable
3537
class RedefinedTypHeader(Vows.Context):
3638
""" Check typ other header raises exception """
3739
@Vows.capture_error
3840
def topic(self):
3941
""" Generate token """
4042
return jwt.generate_jwt(payload, key, alg, timedelta(seconds=60),
41-
other_headers={ 'typ': 'JWT' })
43+
other_headers={'typ': 'JWT'})
4244

4345
def should_not_generated_token(self, r):
4446
""" Should not generate """
4547
expect(r).to_be_an_error()
4648
expect(str(r)).to_equal("other_headers re-specified the headers: set(['typ'])")
4749

4850
@Vows.batch
51+
#pylint: disable=unused-variable
4952
class RedefinedAlgHeader(Vows.Context):
5053
""" Check alg other header raises exception """
5154
@Vows.capture_error
5255
def topic(self):
5356
""" Generate token """
5457
return jwt.generate_jwt(payload, key, alg, timedelta(seconds=60),
55-
other_headers={ 'alg': 'JWT' })
58+
other_headers={'alg': 'JWT'})
5659

5760
def should_not_generated_token(self, r):
5861
""" Should not generate """

0 commit comments

Comments
 (0)