Send copy_elements=True in new create collection test

This commit is contained in:
mvdbeek
2018-08-26 22:13:50 +02:00
parent b13cce0a13
commit cfd8379917
+2 -1
View File
@@ -277,7 +277,8 @@ class HistoryContentsApiTestCase(api.ApiTestCase, TestsDatasets):
'name': 'element_id2',
'tags': ['another_new_tag']}
]),
'type': 'dataset_collection'}
'type': 'dataset_collection',
'copy_elements': True}
r = self._post("histories/%s/contents" % self.history_id, creation_payload).json()
assert r['elements'][0]['object']['id'] != hda_id, "HDA has not been copied"
assert len(r['elements'][0]['object']['tags']) == 1