From b59ee2b00ce1817be16e90146fc6f420e28a8690 Mon Sep 17 00:00:00 2001 From: nelnk861 Date: Tue, 17 Sep 2024 13:49:44 +0200 Subject: [PATCH] Refactored code --- delivery/services/staging_service.py | 2 +- .../160930_ST-E00216_0111_BH37CWALXX/Projects/ABC_123/test_file | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/resources/{ => runfolders}/160930_ST-E00216_0111_BH37CWALXX/Projects/ABC_123/test_file (100%) diff --git a/delivery/services/staging_service.py b/delivery/services/staging_service.py index 7737e4a..debfe5f 100644 --- a/delivery/services/staging_service.py +++ b/delivery/services/staging_service.py @@ -148,7 +148,7 @@ def stage_order(self, stage_order): "external_program_service": self.external_program_service, "staging_repo": self.staging_repo, "session_factory": self.session_factory} - + if not self.file_system_service.exists(stage_order.staging_target): self.file_system_service.makedirs(stage_order.staging_target) diff --git a/tests/resources/160930_ST-E00216_0111_BH37CWALXX/Projects/ABC_123/test_file b/tests/resources/runfolders/160930_ST-E00216_0111_BH37CWALXX/Projects/ABC_123/test_file similarity index 100% rename from tests/resources/160930_ST-E00216_0111_BH37CWALXX/Projects/ABC_123/test_file rename to tests/resources/runfolders/160930_ST-E00216_0111_BH37CWALXX/Projects/ABC_123/test_file