diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-09-16 15:35:23 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-09-16 15:35:23 -0500 |
commit | 1db2bd3fe745d0914264406a0090efc6d81244f4 (patch) | |
tree | df031649490101fafc88cdbd6ab09e6a4281ad41 /mediagoblin/tests/test_api.py | |
parent | 37865d02dddab827d3d016148274e462db03c9f2 (diff) | |
download | mediagoblin-1db2bd3fe745d0914264406a0090efc6d81244f4.tar.lz mediagoblin-1db2bd3fe745d0914264406a0090efc6d81244f4.tar.xz mediagoblin-1db2bd3fe745d0914264406a0090efc6d81244f4.zip |
Annnnd another json decode fix for py3! On a roll with these!
This commit sponsored by Ramana Kumar. Thanks!
Diffstat (limited to 'mediagoblin/tests/test_api.py')
-rw-r--r-- | mediagoblin/tests/test_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tests/test_api.py b/mediagoblin/tests/test_api.py index 3ac21366..e3a06cf8 100644 --- a/mediagoblin/tests/test_api.py +++ b/mediagoblin/tests/test_api.py @@ -284,7 +284,7 @@ class TestAPI(object): with self.mock_oauth(): 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() assert request.status_code == 200 |