From e9b82e34256d500f5336c3f09d6f58fbb88c282a Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 3 Jul 2017 17:38:33 +0000 Subject: [PATCH] Tastypie 0.14.0 does not support the callback parameter as earlier; disable the tests for this as we don't use it anyway. - Legacy-Id: 13764 --- ietf/api/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/api/tests.py b/ietf/api/tests.py index b5d4595b7..e5ac12809 100644 --- a/ietf/api/tests.py +++ b/ietf/api/tests.py @@ -94,7 +94,7 @@ class TastypieApiTestCase(ResourceTestCaseMixin, TestCase): client = Client(Accept='application/json') r = client.get("/api/v1") top = json.loads(r.content) - self._assertCallbackReturnsSameJSON("/api/v1", top) + #self._assertCallbackReturnsSameJSON("/api/v1", top) for name in self.apps: app_name = self.apps[name] app = import_module(app_name) @@ -102,7 +102,7 @@ class TastypieApiTestCase(ResourceTestCaseMixin, TestCase): r = client.get(top[name]["list_endpoint"]) self.assertValidJSONResponse(r) app_resources = json.loads(r.content) - self._assertCallbackReturnsSameJSON("/api/v1/%s/"%name, app_resources) + #self._assertCallbackReturnsSameJSON("/api/v1/%s/"%name, app_resources) # model_list = apps.get_app_config(name).get_models() for model in model_list: