diff --git a/test/integration/objectstore/_purged_handling.py b/test/integration/objectstore/_purged_handling.py index 9ad0b7055f46..21d863473601 100644 --- a/test/integration/objectstore/_purged_handling.py +++ b/test/integration/objectstore/_purged_handling.py @@ -33,7 +33,7 @@ def purge_while_job_running(dataset_populator: DatasetPopulator, extra_sleep=0): history_id=history_id, content_id=output["id"], purge=True, wait_for_purge=True ) hda_ids.append(output["id"]) - for output_name, output_collection in job["output_collections"].items(): + for output_collection in job["output_collections"].values(): hdca = dataset_populator.get_history_collection_details( history_id=history_id, content_id=output_collection["id"] ) @@ -48,7 +48,7 @@ def purge_while_job_running(dataset_populator: DatasetPopulator, extra_sleep=0): dataset_populator.wait_for_job(job["id"], assert_ok=True) # Now make sure we can't find the datasets on disk job = dataset_populator.get_job_details(response["jobs"][0]["id"], full=True).json() - for output_name, output in job["outputs"].items(): + for output in job["outputs"].values(): exception = None try: dataset_populator.get_history_dataset_content(history_id=history_id, dataset_id=hda_id)