From 9ef02a24f505b9f09aea0850b9152e386ebb025e Mon Sep 17 00:00:00 2001 From: Scott Staniewicz Date: Mon, 21 Oct 2024 12:21:01 -0400 Subject: [PATCH] specify log in temp dir --- tests/test_workflows_displacement.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_workflows_displacement.py b/tests/test_workflows_displacement.py index 3cff98c1..535c51db 100644 --- a/tests/test_workflows_displacement.py +++ b/tests/test_workflows_displacement.py @@ -197,6 +197,7 @@ def test_displacement_run_extra_reference_date( pytest.skip(reason="spurt unwrapper not installed") with tmpdir.as_cwd(): + log_file = Path() / "dolphin.log" cfg = config.DisplacementWorkflow( # start_date = 20220101 # shape = (4, 128, 128) @@ -208,6 +209,7 @@ def test_displacement_run_extra_reference_date( phase_linking={ "ministack_size": 4, }, + log_file=log_file, ) paths = displacement.run(cfg) @@ -245,3 +247,4 @@ def test_displacement_run_extra_reference_date( ] assert all(get_raster_units(p) == "radians" for p in paths.unwrapped_paths) + log_file.unlink()