Skip to content

Commit

Permalink
Reformatting anf changed how to assert a folder is not in directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nkongenelly committed Oct 11, 2024
1 parent 36614d7 commit c5e980d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration_tests/test_integration_dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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"
Expand Down

0 comments on commit c5e980d

Please sign in to comment.