Skip to content

Commit

Permalink
Make presence of tags testable
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Feb 6, 2018
1 parent b2be7b5 commit f9664a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/base/interactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ def _verify_metadata(self, history_id, hid, attributes):
"""Check dataset metadata.
ftype on output maps to `file_ext` on the hda's API description, `name`, `info`,
and `dbkey` all map to the API description directly. Other metadata attributes
`dbkey` and `tags` all map to the API description directly. Other metadata attributes
are assumed to be datatype-specific and mapped with a prefix of `metadata_`.
"""
metadata = attributes.get('metadata', {}).copy()
for key, value in metadata.copy().items():
if key not in ['name', 'info']:
if key not in ['name', 'info', 'tags']:
new_key = "metadata_%s" % key
metadata[new_key] = metadata[key]
del metadata[key]
Expand Down

0 comments on commit f9664a0

Please sign in to comment.