Skip to content

Commit

Permalink
fix bug in test_GUNW to raise correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmaurer committed Jul 5, 2024
1 parent afb07cf commit a826e07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_GUNW.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit a826e07

Please sign in to comment.