Skip to content

Commit

Permalink
[#3229] Fix test with updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Sep 6, 2016
1 parent 9cdbca6 commit 531ec9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/tests/legacy/logic/test_action.py
Expand Up @@ -760,7 +760,7 @@ def test_31_bad_request_format_not_json(self):
postparams = '=1'
res = self.app.post('/api/action/package_list', params=postparams,
status=400)
assert "Bad request - Bad request data: Request data JSON decoded to '' but it needs to be a dictionary." in res.body, res.body
assert "Bad request - JSON Error: Error decoding JSON data." in res.body, res.body

def test_32_get_domain_object(self):
anna = model.Package.by_name(u'annakarenina')
Expand Down

0 comments on commit 531ec9f

Please sign in to comment.