mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
enhance tag test to include other types of tags
This commit is contained in:
@@ -126,10 +126,13 @@ class DatasetsApiTestCase(ApiTestCase):
|
||||
payload = {
|
||||
'item_id': hda_id,
|
||||
'item_class': 'HistoryDatasetAssociation',
|
||||
'item_tags': ['cool:tag_a', 'cool:tag_b'],
|
||||
'item_tags': ['cool:tag_a', 'cool:tag_b', 'tag_c', 'name:tag_d', '#tag_e'],
|
||||
}
|
||||
self._put("tags", payload).json()
|
||||
updated_hda = self._get(
|
||||
"histories/{history_id}/contents/{hda_id}".format(history_id=self.history_id, hda_id=hda_id)).json()
|
||||
assert 'cool:tag_a' in updated_hda['tags']
|
||||
assert 'cool:tag_b' in updated_hda['tags']
|
||||
assert 'tag_c' in updated_hda['tags']
|
||||
assert 'name:tag_d' in updated_hda['tags']
|
||||
assert 'name:tag_e' in updated_hda['tags']
|
||||
|
||||
Reference in New Issue
Block a user