@@ -361,17 +361,23 @@ def test_vectors_query_raw(self):
361
361
362
362
assert len (res ) >= 6412
363
363
364
- def test_vectors_query_topocentric_coordinates (self ):
364
+ @pytest .mark .parametrize (
365
+ "location" ,
366
+ ({"lon" : 244 , "lat" : 33 , "elevation" : 1.7 },
367
+ {"lon" : (244 * u .deg ).to (u .rad ), "lat" : (33 * u .deg ).to (u .rad ), "elevation" : 1700 * u .m },
368
+ )
369
+ )
370
+ def test_vectors_query_topocentric_coordinates (self , location ):
365
371
"Test vectors query specifying observer's longitude, latitude, and elevation"
366
372
q = jplhorizons .Horizons (id = 'Ceres' ,
367
- location = { "lon" : 244 , "lat" : 33 , "elevation" : 1700 } ,
373
+ location = location ,
368
374
id_type = 'smallbody' ,
369
375
epochs = 2451544.5 )
370
376
res = q .vectors_async ()
371
377
i = res .text .find ("Center geodetic :" )
372
378
j = res .text .find ("\n " , i )
373
379
parts = res .text [i :j ].split ()
374
- assert parts [3 :6 ] == ['244.0,' , '33.0,' , '1700.0 ' ]
380
+ assert parts [3 :6 ] == ['244.0,' , '33.0,' , '1.7 ' ]
375
381
376
382
start = res .text .find ("$$SOE" )
377
383
end = res .text .find ("$$EOE" )
0 commit comments