Skip to content

Commit

Permalink
fix test, remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Apr 22, 2024
1 parent 46fd867 commit 0256da3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions jwst/tweakreg/tests/test_tweakreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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")
Expand Down

0 comments on commit 0256da3

Please sign in to comment.