aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_api.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-09-16 15:35:23 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-09-16 15:35:23 -0500
commit1db2bd3fe745d0914264406a0090efc6d81244f4 (patch)
treedf031649490101fafc88cdbd6ab09e6a4281ad41 /mediagoblin/tests/test_api.py
parent37865d02dddab827d3d016148274e462db03c9f2 (diff)
downloadmediagoblin-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.py2
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