Fix err_msg assertion

This commit is contained in:
mvdbeek
2019-04-17 16:30:24 +02:00
parent ae5e781edf
commit 885d9d1766
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1123,5 +1123,5 @@ class ModelFilterParser(HasAModelManager):
return date_string
raise ValueError('datetime strings must be in the ISO 8601 format and in the UTC')
def raise_filter_err(attr, op, val, msg):
def raise_filter_err(self, attr, op, val, msg):
raise exceptions.RequestParameterInvalidException(msg, column=attr, operation=op, val=val)
+1 -1
View File
@@ -86,7 +86,7 @@ class DatasetsApiTestCase(api.ApiTestCase):
payload = {'limit': 10, 'offset': 0, 'q': ['history_content_type', 'tag-invalid_op'], 'qv': ['dataset', 'notag']}
index_response = self._get("datasets", payload)
self._assert_status_code_is(index_response, 400)
assert index_response.json()['err_msg'] == 'bad filter'
assert index_response.json()['err_msg'] == 'bad op in filter'
def test_show(self):
hda1 = self.dataset_populator.new_dataset(self.history_id)