Skip to content

Commit

Permalink
fix missing parameter accessed
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Oct 26, 2024
1 parent 5338e30 commit ec2e14c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_pipeline_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec2e14c

Please sign in to comment.