Fix tests for server mode.

This commit is contained in:
Steve Pulec 2015-09-16 10:11:43 -04:00
commit b0ea9f2859
2 changed files with 10 additions and 4 deletions

View file

@ -10,7 +10,11 @@ class DataPipelineResponse(BaseResponse):
@property
def parameters(self):
return json.loads(self.body.decode("utf-8"))
# TODO this should really be moved to core/responses.py
if self.body:
return json.loads(self.body.decode("utf-8"))
else:
return self.querystring
@property
def datapipeline_backend(self):