From 3f723b3cfe29239206572c01a7ad6ec741fe4323 Mon Sep 17 00:00:00 2001 From: Melanie Clarke Date: Mon, 10 Jun 2024 11:00:42 -0400 Subject: [PATCH] Update wavecorr test --- jwst/wavecorr/tests/test_wavecorr.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jwst/wavecorr/tests/test_wavecorr.py b/jwst/wavecorr/tests/test_wavecorr.py index 125d492a79..e7681fb6d2 100644 --- a/jwst/wavecorr/tests/test_wavecorr.py +++ b/jwst/wavecorr/tests/test_wavecorr.py @@ -190,8 +190,9 @@ def test_mos_slit_status(): im_src.slits[0].source_type = 'EXTENDED' im_wave = WavecorrStep.call(im_src) - # check that the step is recorded as completed - assert im_wave.meta.cal_step.wavecorr == 'COMPLETE' + # check that the step is recorded as skipped, + # since no slits were corrected + assert im_wave.meta.cal_step.wavecorr == 'SKIPPED' # check that the step is listed as skipped for extended mos sources assert im_wave.slits[0].meta.cal_step.wavecorr == 'SKIPPED' @@ -260,7 +261,7 @@ def test_wavecorr_fs(): corrected_wavelength = wavecorr.compute_wavelength(slit.meta.wcs, x, y) assert_allclose(slit.wavelength, corrected_wavelength) - # test the roundtripping on the wavelength correction transform + # test the round-tripping on the wavelength correction transform ref_name = result.meta.ref_file.wavecorr.name freference = datamodels.WaveCorrModel(WavecorrStep.reference_uri_to_cache_path(ref_name, im.crds_observatory))