Annnnd another json decode fix for py3! On a roll with these!

This commit sponsored by Ramana Kumar.  Thanks!
This commit is contained in:
Christopher Allan Webber 2014-09-16 15:35:23 -05:00
parent 37865d02dd
commit 1db2bd3fe7

View File

@ -284,7 +284,7 @@ class TestAPI(object):
with self.mock_oauth(): with self.mock_oauth():
request = test_app.get(object_uri) request = test_app.get(object_uri)
image = json.loads(request.body) image = json.loads(request.body.decode())
entry = MediaEntry.query.filter_by(id=image["id"]).first() entry = MediaEntry.query.filter_by(id=image["id"]).first()
assert request.status_code == 200 assert request.status_code == 200