From dfbc13cf342e462cef00eaad8d5cf6036d2ecfea Mon Sep 17 00:00:00 2001 From: zssherman Date: Thu, 12 Mar 2026 13:41:45 -0500 Subject: [PATCH 1/2] FIX: Update moviepy test to use images from adc. --- tests/utils/test_io_utils.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/utils/test_io_utils.py b/tests/utils/test_io_utils.py index 4e059b3767..c489da0793 100644 --- a/tests/utils/test_io_utils.py +++ b/tests/utils/test_io_utils.py @@ -224,10 +224,10 @@ def test_gunzip(): @pytest.mark.skipif(not MOVIEPY_AVAILABLE, reason='MoviePy is not installed.') def test_generate_movie(): files = [ - 'https://github.com/ARM-DOE/ACT/blob/main/tests/plotting/baseline/test_contour.png?raw=true', - 'https://github.com/ARM-DOE/ACT/blob/main/tests/plotting/baseline/test_contour2.png?raw=true', - 'https://github.com/ARM-DOE/ACT/blob/main/tests/plotting/baseline/test_contourf.png?raw=true', - 'https://github.com/ARM-DOE/ACT/blob/main/tests/plotting/baseline/test_contourf2.png?raw=true', + 'https://plot.dmf.arm.gov/PLOTS/sgp/sgpmet/20260312/sgpmetE12.b1.precip.20260312.png', + 'https://plot.dmf.arm.gov/PLOTS/sgp/sgpmet/20260311/sgpmetE12.b1.precip.20260311.png', + 'https://plot.dmf.arm.gov/PLOTS/sgp/sgpmet/20260310/sgpmetE12.b1.precip.20260310.png', + 'https://plot.dmf.arm.gov/PLOTS/sgp/sgpmet/20260309/sgpmetE12.b1.precip.20260309.png', ] cwd = Path.cwd() with tempfile.TemporaryDirectory() as tmpdirname: @@ -239,12 +239,14 @@ def test_generate_movie(): assert Path(result).name == 'movie.mp4' # Test list of files for making movie - files = [ - 'test_contour.png', - 'test_contour2.png', - 'test_contourf.png', - 'test_contourf2.png', - ] + files = sorted( + [ + 'sgpmetE12.b1.precip.20260312.png', + 'sgpmetE12.b1.precip.20260311.png', + 'sgpmetE12.b1.precip.20260310.png', + 'sgpmetE12.b1.precip.20260309.png', + ] + ) basepath = Path(Path(__file__).parents[1], 'plotting', 'baseline') files = [Path(basepath, fl) for fl in files] write_filename = Path(tmpdirname, 'one', 'two', 'three', 'movie_filename_testing.mp4') From aa02a2b0119d3c4d96d1d2134353311e2aafab84 Mon Sep 17 00:00:00 2001 From: zssherman Date: Thu, 12 Mar 2026 14:07:36 -0500 Subject: [PATCH 2/2] FIX: Use contour images for second tests since they already exist. --- tests/utils/test_io_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/utils/test_io_utils.py b/tests/utils/test_io_utils.py index c489da0793..d5bd155948 100644 --- a/tests/utils/test_io_utils.py +++ b/tests/utils/test_io_utils.py @@ -241,10 +241,10 @@ def test_generate_movie(): # Test list of files for making movie files = sorted( [ - 'sgpmetE12.b1.precip.20260312.png', - 'sgpmetE12.b1.precip.20260311.png', - 'sgpmetE12.b1.precip.20260310.png', - 'sgpmetE12.b1.precip.20260309.png', + 'test_contour.png', + 'test_contour2.png', + 'test_contourf.png', + 'test_contourf2.png', ] ) basepath = Path(Path(__file__).parents[1], 'plotting', 'baseline')