Skip to content

Commit

Permalink
fix python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Oct 9, 2019
1 parent 0db54ee commit 5cb9b35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def test_jwt_auth_response(version):
password = 'dummy-password'

def jwt_request_callback(request):
body = json.loads(request.body)
body = request.body
if isinstance(body, bytes):
body = body.decode()
body = json.loads(body)

assert body['username'] == username
assert body['password'] == password
Expand Down

0 comments on commit 5cb9b35

Please sign in to comment.