We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f1bb44 commit d6092cbCopy full SHA for d6092cb
qiita_db/test/test_artifact.py
@@ -1233,6 +1233,16 @@ def test_delete_as_output_job(self):
1233
with self.assertRaises(qdb.exceptions.QiitaDBUnknownIDError):
1234
qdb.artifact.Artifact(artifact.id)
1235
1236
+ def test_unique_ids(self):
1237
+ art = qdb.artifact.Artifact(1)
1238
+ obs = art.unique_ids()
1239
+ exp = {name: idx for idx, name in enumerate(sorted(art.prep_templates[0].keys()))}
1240
+ self.assertEqual(obs, exp)
1241
+
1242
+ # verify repeat calls are unchanged
1243
1244
1245
1246
def test_name_setter(self):
1247
a = qdb.artifact.Artifact(1)
1248
self.assertEqual(a.name, "Raw data 1")
0 commit comments