From f7113a18a4000ba3ea09f2aa8e68bb3e0f245fec Mon Sep 17 00:00:00 2001 From: lb584 <lb584@cam.ac.uk> Date: Tue, 14 Mar 2023 17:28:20 +0000 Subject: [PATCH] adding some missing import statements --- tests/integration/partial/test_epi.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/partial/test_epi.py b/tests/integration/partial/test_epi.py index 2858e09..f644e09 100644 --- a/tests/integration/partial/test_epi.py +++ b/tests/integration/partial/test_epi.py @@ -28,12 +28,15 @@ class TestEpi(unittest.TestCase): default_config = IntegrationTestUtils.DEFAULT_CONFIG_FILE_PATH default_config_dict: dict = IntegrationTestUtils.load_json_file(default_config) run_dict: dict = copy.deepcopy(default_config_dict) - TestEpi.TEST_OUT_PATH = run_dict['WorkspacePathout'] + prefix + os.sep + TestEpi.TEST_OUT_PATH = IntegrationTestUtils.TEST_WORKSPACE_PATH + prefix + os.sep run_dict['WorkspacePathout'] = TestEpi.TEST_OUT_PATH run_dict['WorkspacePath'] = TestEpi.TEST_OUT_PATH run_dict['ServerName'] = '' # nothing, as local machine - IntegrationTestUtils.write_json_file(run_dict, IntegrationTestUtils.TEMP_CONFIG_FILE_NAME) + os.makedirs(TestEpi.TEST_OUT_PATH, exist_ok = True) + IntegrationTestUtils.TEMP_CONFIG_FILE_NAME = TestEpi.TEST_OUT_PATH + "temp_config.json" + name = IntegrationTestUtils.TEMP_CONFIG_FILE_NAME + IntegrationTestUtils.write_json_file(run_dict, name) @staticmethod -- GitLab