Skip to content

Commit ae55fed

Browse files
committed
Remove a duplicated EarthLocation test
`test_earthlocation_site()` was essentially a duplicate of one of the `test_serialization()` parametrizations in the same test file.
1 parent 2fb4b0d commit ae55fed

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

asdf_astropy/converters/coordinates/tests/test_earth_location.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from astropy.coordinates.earth import ELLIPSOIDS
66
from astropy.units import Quantity
77

8-
from asdf_astropy.testing.helpers import assert_earth_location_equal
9-
108

119
def create_earth_locations():
1210
longitude = Longitude([0.0, 45.0, 90.0, 135.0, 180.0, -180, -90, -45], u.deg, wrap_angle=180 * u.deg)
@@ -33,15 +31,3 @@ def test_serialization(earth_location, tmp_path):
3331

3432
with asdf.open(file_path) as af:
3533
assert (af["earth_location"] == earth_location).all()
36-
37-
38-
def test_earthlocation_site(tmp_path):
39-
earth_location = EarthLocation(lon=-0.001475 * u.deg, lat=51.477811 * u.deg, height=46 * u.m)
40-
41-
file_path = tmp_path / "test.asdf"
42-
with asdf.AsdfFile() as af:
43-
af["earth_location"] = earth_location
44-
af.write_to(file_path)
45-
46-
with asdf.open(file_path) as af:
47-
assert_earth_location_equal(af["earth_location"], earth_location)

0 commit comments

Comments
 (0)