mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix err_msg assertion
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user