Skip to content

Commit

Permalink
Decode bytes from HTTP into a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwg4 committed May 25, 2017
1 parent a162e7d commit e6974b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_flask_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def json_docs():
response = self.client.get('/docs')
self.assertEqual(response.status_code, 200)

data = json.loads(response.data)
data = json.loads(response.data.decode('utf-8'))
self.assertIn('endpoints', data)
self.assertEqual(len(data['endpoints']), 1)

Expand Down

0 comments on commit e6974b0

Please sign in to comment.