16
16
DATA_FILES = {'ephemerides' : 'ceres_ephemerides.txt' ,
17
17
'elements' : 'ceres_elements.txt' ,
18
18
'vectors' : 'ceres_vectors.txt' ,
19
- '"1935 UZ; "' : 'no_H.txt' }
19
+ '"1935 UZ"' : 'no_H.txt' }
20
20
21
21
22
22
def data_path (filename ):
@@ -27,7 +27,7 @@ def data_path(filename):
27
27
# monkeypatch replacement request function
28
28
def nonremote_request (self , request_type , url , ** kwargs ):
29
29
30
- if kwargs ['params' ]['COMMAND' ] == '"Ceres; "' :
30
+ if kwargs ['params' ]['COMMAND' ] == '"Ceres"' :
31
31
# pick DATA_FILE based on query type
32
32
query_type = {'OBSERVER' : 'ephemerides' ,
33
33
'ELEMENTS' : 'elements' ,
@@ -182,7 +182,7 @@ def test_elements_query_payload():
182
182
('EPHEM_TYPE' , 'ELEMENTS' ),
183
183
('MAKE_EPHEM' , 'YES' ),
184
184
('OUT_UNITS' , 'AU-D' ),
185
- ('COMMAND' , '"Ceres; "' ),
185
+ ('COMMAND' , '"Ceres"' ),
186
186
('CENTER' , "'500@10'" ),
187
187
('CSV_FORMAT' , 'YES' ),
188
188
('ELEM_LABELS' , 'YES' ),
@@ -202,7 +202,7 @@ def test_vectors_query_payload():
202
202
('format' , 'text' ),
203
203
('EPHEM_TYPE' , 'VECTORS' ),
204
204
('OUT_UNITS' , 'AU-D' ),
205
- ('COMMAND' , '"Ceres; "' ),
205
+ ('COMMAND' , '"Ceres"' ),
206
206
('CENTER' , "'500@10'" ),
207
207
('CSV_FORMAT' , '"YES"' ),
208
208
('REF_PLANE' , 'ECLIPTIC' ),
@@ -219,18 +219,3 @@ def test_no_H(patch_request):
219
219
"""testing missing H value (also applies for G, M1, k1, M2, k2)"""
220
220
res = jplhorizons .Horizons (id = '1935 UZ' ).ephemerides ()[0 ]
221
221
assert 'H' not in res
222
-
223
-
224
- def test_id_type_deprecation ():
225
- """Test deprecation warnings based on issue 1742.
226
-
227
- Remove when id_type behavior is changed.
228
-
229
- https://github.com/astropy/astroquery/pull/1742
230
-
231
- """
232
- with pytest .warns (AstropyDeprecationWarning ):
233
- res = jplhorizons .Horizons (id = 'Ceres' )
234
-
235
- with pytest .warns (AstropyDeprecationWarning ):
236
- res = jplhorizons .Horizons (id = 'Ceres' , id_type = 'majorbody' )
0 commit comments