From c5e980da1c73998d7a220681ae1ddd0c03c5b0d0 Mon Sep 17 00:00:00 2001 From: nelnk861 Date: Fri, 11 Oct 2024 13:53:49 +0200 Subject: [PATCH] Reformatting anf changed how to assert a folder is not in directory --- tests/integration_tests/test_integration_dds.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration_tests/test_integration_dds.py b/tests/integration_tests/test_integration_dds.py index 2fe08f1..8fa7947 100644 --- a/tests/integration_tests/test_integration_dds.py +++ b/tests/integration_tests/test_integration_dds.py @@ -249,11 +249,6 @@ def test_can_organise_stage_and_deliver_force_flowcells(self): staging_status_links = response_json.get("staging_order_links") staging_order_ids = response_json.get("staging_order_ids") - # Assert the staged folder structure has only one runfolder folder - temp_staging_dir = f"/tmp/{staging_order_ids.get('JKL_123')}/JKL_123" - for runfolder in os.listdir(temp_staging_dir): - self.assertFalse(set(runfolder).issuperset(set(os.listdir(f"{temp_staging_dir}/{runfolder}")))) - # Insert a pause to allow staging to complete time.sleep(1) @@ -263,6 +258,11 @@ def test_can_organise_stage_and_deliver_force_flowcells(self): status_response = yield self.http_client.fetch(link) self.assertEqual(json.loads(status_response.body)["status"], StagingStatus.staging_successful.name) + # Assert the staged folder structure has only one runfolder folder + temp_staging_dir = f"/tmp/{staging_order_ids.get('JKL_123')}/JKL_123" + for runfolder in os.listdir(temp_staging_dir): + self.assertFalse(runfolder in os.listdir(f"{temp_staging_dir}/{runfolder}")) + @gen_test def test_can_create_project(self): project_name = "CD-1234"