@@ -40,7 +40,12 @@ def patch_request(request):
4040
4141# --------------------------------- actual test functions
4242
43+ # Older astropy versions issues UnitsWarnings for "u.au", we need to ignore those here.
44+ # Revisit when we drop __version__ 5.0
45+ #
46+ # WARNING: UnitsWarning: The unit 'au' has been deprecated in the VOUnit standard....
4347
48+ @pytest .mark .filterwarnings ("ignore::astropy.units.UnitsWarning" )
4449def test_spherical_coordinates (patch_request ):
4550 eph = Miriade .get_ephemerides ('3552' , coordtype = 1 )
4651 cols = ('epoch' , 'RA' , 'DEC' , 'delta' , 'V' , 'alpha' , 'elong' , 'RAcosD_rate' ,
@@ -53,6 +58,7 @@ def test_spherical_coordinates(patch_request):
5358 assert eph [cols [i ]].unit == units [i ]
5459
5560
61+ @pytest .mark .filterwarnings ("ignore::astropy.units.UnitsWarning" )
5662def test_spherical_coordinates_ecliptic (patch_request ):
5763 eph = Miriade .get_ephemerides ('3552' , coordtype = 1 , refplane = "ecliptic" )
5864 cols = ('epoch' , 'LONG' , 'LAT' , 'delta' , 'V' , 'alpha' , 'elong' , 'LONGcosLAT_rate' ,
@@ -65,6 +71,7 @@ def test_spherical_coordinates_ecliptic(patch_request):
6571 assert eph [cols [i ]].unit == units [i ]
6672
6773
74+ @pytest .mark .filterwarnings ("ignore::astropy.units.UnitsWarning" )
6875def test_rectangular_coordinates (patch_request ):
6976 eph = Miriade .get_ephemerides ('3552' , coordtype = 2 )
7077 cols = ('epoch' , 'px' , 'py' , 'pz' , 'delta' , 'heldist' , 'alpha' , 'elong' , 'V' ,
@@ -77,6 +84,7 @@ def test_rectangular_coordinates(patch_request):
7784 assert eph [cols [i ]].unit == units [i ]
7885
7986
87+ @pytest .mark .filterwarnings ("ignore::astropy.units.UnitsWarning" )
8088def test_local_coordinates (patch_request ):
8189 eph = Miriade .get_ephemerides ('3552' , coordtype = 3 )
8290 cols = ('epoch' , 'siderealtime' , 'AZ' , 'EL' , 'delta' , 'V' ,
@@ -89,6 +97,7 @@ def test_local_coordinates(patch_request):
8997 assert eph [cols [i ]].unit == units [i ]
9098
9199
100+ @pytest .mark .filterwarnings ("ignore::astropy.units.UnitsWarning" )
92101def test_hourangle_coordinates (patch_request ):
93102 eph = Miriade .get_ephemerides ('3552' , coordtype = 4 )
94103 cols = ['epoch' , 'siderealtime' , 'hourangle' , 'dec' , 'delta' , 'V' ,
@@ -101,6 +110,7 @@ def test_hourangle_coordinates(patch_request):
101110 assert eph [cols [i ]].unit == units [i ]
102111
103112
113+ @pytest .mark .filterwarnings ("ignore::astropy.units.UnitsWarning" )
104114def test_observation_coordinates (patch_request ):
105115 eph = Miriade .get_ephemerides ('3552' , coordtype = 5 )
106116 cols = ['epoch' , 'siderealtime' , 'RA' , 'DEC' , 'hourangle' , 'AZ' , 'EL' ,
0 commit comments