From 0256da3928b473d30abaa0efbf64222b1f9d672a Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 22 Apr 2024 06:54:06 -0400 Subject: [PATCH] fix test, remove duplicate test --- jwst/tweakreg/tests/test_tweakreg.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/jwst/tweakreg/tests/test_tweakreg.py b/jwst/tweakreg/tests/test_tweakreg.py index 182c5123960..8dddf6518bf 100644 --- a/jwst/tweakreg/tests/test_tweakreg.py +++ b/jwst/tweakreg/tests/test_tweakreg.py @@ -41,7 +41,7 @@ def test_rename_catalog_columns(dummy_source_catalog, inplace): assert 'xcentroid' not in catalog.colnames assert 'ycentroid' not in catalog.colnames - assert 'y' in catalog.colnames + assert 'x' in catalog.colnames assert 'y' in catalog.colnames @@ -56,14 +56,6 @@ def test_rename_catalog_columns_invalid(dummy_source_catalog, missing): tweakreg_step._rename_catalog_columns(dummy_source_catalog) -def test_rename_catalog_columns_inplace(dummy_source_catalog): - catalog = tweakreg_step._rename_catalog_columns(dummy_source_catalog) - assert 'xcentroid' not in catalog.colnames - assert 'ycentroid' not in catalog.colnames - assert 'y' in catalog.colnames - assert 'y' in catalog.colnames - - @pytest.mark.parametrize("offset, is_good", [(1 / 3600, True), (11 / 3600, False)]) def test_is_wcs_correction_small(offset, is_good): path = os.path.join(os.path.dirname(__file__), "mosaic_long_i2d_gwcs.asdf")