From ec2e14c516197e9b17906dda5cc58c9198b53b98 Mon Sep 17 00:00:00 2001 From: Acribbs Date: Sat, 26 Oct 2024 11:37:20 +0100 Subject: [PATCH] fix missing parameter accessed --- tests/test_pipeline_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_pipeline_control.py b/tests/test_pipeline_control.py index dd366e59..27832067 100644 --- a/tests/test_pipeline_control.py +++ b/tests/test_pipeline_control.py @@ -17,6 +17,9 @@ @pytest.fixture def work_dir(): """Fixture to create and clean up a temporary work directory.""" + # Set default value for shared_tmpdir if it is missing + if 'shared_tmpdir' not in P.get_params(): + P.get_params()['shared_tmpdir'] = tempfile.mkdtemp() temp_dir = P.get_temp_dir(shared=True) yield temp_dir shutil.rmtree(temp_dir)