Annnnd another json decode fix for py3! On a roll with these!
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 16 Sep 2014 20:35:23 +0000 (15:35 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 16 Sep 2014 20:35:23 +0000 (15:35 -0500)
This commit sponsored by Ramana Kumar.  Thanks!

mediagoblin/tests/test_api.py

index 3ac213660f242d1e6dab0b381dd046c12e905ec0..e3a06cf8f23065707834db19a8f9fa2d0acd66c2 100644 (file)
@@ -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