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
This commit is contained in:
parent
69ba238c59
commit
e9b82e3425
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue