Skip to content

Commit

Permalink
[#1725] Guarantee that tests fail for the correct reason
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed May 23, 2014
1 parent fa8b0c5 commit b09085d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ckanext/datastore/tests/test_delete.py
Expand Up @@ -172,5 +172,6 @@ def test_delete_is_unsuccessful_when_called_with_invalid_filters(self):
extra_environ=auth, status=409)
res_dict = json.loads(res.body)
assert res_dict['success'] is False
assert res_dict['error'].get('filters') is not None, res_dict['error']

self._delete()
1 change: 1 addition & 0 deletions ckanext/datastore/tests/test_search.py
Expand Up @@ -427,6 +427,7 @@ def test_search_is_unsuccessful_when_called_with_invalid_filters(self):
extra_environ=auth, status=409)
res_dict = json.loads(res.body)
assert res_dict['success'] is False
assert res_dict['error'].get('filters') is not None, res_dict['error']


class TestDatastoreFullTextSearch(tests.WsgiAppCase):
Expand Down

0 comments on commit b09085d

Please sign in to comment.