From a826e077ca29dfc70cab87081559853f4d373e69 Mon Sep 17 00:00:00 2001 From: Jeremy Maurer Date: Fri, 5 Jul 2024 14:08:14 -0500 Subject: [PATCH] fix bug in test_GUNW to raise correct error --- test/test_GUNW.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_GUNW.py b/test/test_GUNW.py index 99a5e7a74..d35ae981b 100644 --- a/test/test_GUNW.py +++ b/test/test_GUNW.py @@ -24,7 +24,9 @@ get_slc_ids_from_gunw,get_acq_time_from_slc_id ) from RAiDER.cli.raider import calcDelaysGUNW -from RAiDER.models.customExceptions import NoWeatherModelData +from RAiDER.models.customExceptions import ( + NoWeatherModelData, WrongNumberOfFiles, +) def compute_transform(lats, lons): @@ -568,7 +570,7 @@ def test_GUNW_workflow_fails_if_a_download_fails(gunw_azimuth_test, orbit_dict_f '-interp', 'azimuth_time_grid' ] - with pytest.raises(RuntimeError): + with pytest.raises(WrongNumberOfFiles): calcDelaysGUNW(iargs_1) RAiDER.s1_azimuth_timing.get_s1_azimuth_time_grid.assert_not_called()