Skip to content

Commit

Permalink
Tweak the test a little more
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Apr 19, 2023
1 parent bf1b98b commit e45eac6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions astropy/wcs/wcsapi/tests/test_fitswcs.py
Expand Up @@ -1352,7 +1352,7 @@ def check_wcs(header):
check_wcs(hdr)


def test_fits_tab():
def test_fits_tab_time_and_units():
"""
This test is a regression test for https://github.com/astropy/astropy/issues/12095
Expand All @@ -1370,6 +1370,10 @@ def test_fits_tab():
assert isinstance(world[0], SkyCoord)
assert world[0].data.lat.unit is u.arcsec
assert world[0].data.lon.unit is u.arcsec
assert isinstance(world[1], u.Quantity)
assert u.allclose(world[0].l, 0.06475506 * u.deg)
assert u.allclose(world[0].b, -0.02430561 * u.deg)
assert isinstance(world[1], SpectralCoord)
assert u.allclose(world[1], 24.96 * u.Hz)
assert isinstance(world[2], Time)
assert world[2].scale == "utc"
assert u.allclose(world[2].mjd, 0.00032986111111110716)

Check warning on line 1379 in astropy/wcs/wcsapi/tests/test_fitswcs.py

View check run for this annotation

Codecov / codecov/patch

astropy/wcs/wcsapi/tests/test_fitswcs.py#L1366-L1379

Added lines #L1366 - L1379 were not covered by tests

0 comments on commit e45eac6

Please sign in to comment.