Skip to content

Commit 4a6d73b

Browse files
Aaron SuarezAaron Suarez
Aaron Suarez
authored and
Aaron Suarez
committed
Remove "decode" function from test jwt creation
1 parent 00fe2da commit 4a6d73b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/test_auth_jwt.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
delta = timedelta(seconds=-11)
4141

4242
GOOD_AUTH = "Bearer " + encode({'email': FAKE_EMAIL, 'exp': EXP},
43-
SECRET_KEY, algorithm='RS256').decode('utf-8')
43+
SECRET_KEY, algorithm='RS256')
4444
BAD_AUTH = "Bearer " + encode({'email': FAKE_EMAIL, 'exp': EXP},
45-
BOGUS_KEY, algorithm='RS256').decode('utf-8')
45+
BOGUS_KEY, algorithm='RS256')
4646
EXP_AUTH = "Bearer " + encode({'email': FAKE_EMAIL, 'exp': EXP + delta},
47-
SECRET_KEY, algorithm='RS256').decode('utf-8')
47+
SECRET_KEY, algorithm='RS256')
4848
NO_EXP_AUTH = "Bearer " + encode({'email': FAKE_EMAIL},
49-
SECRET_KEY, algorithm='RS256').decode('utf-8')
49+
SECRET_KEY, algorithm='RS256')
5050

5151

5252
def create_fake_key(session, **kwargs):

0 commit comments

Comments
 (0)