File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
astroquery/solarsystem/pds/tests Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
5
5
import astropy .units as u
6
+ from ....query import AstroQuery
6
7
7
8
from astroquery .utils .mocks import MockResponse
8
9
from ... import pds
@@ -42,6 +43,14 @@ def patch_request(request):
42
43
43
44
# --------------------------------- actual test functions
44
45
46
+ def test_parse_result (patch_request ):
47
+ q = pds .RingNode ()
48
+ # need _last_query to be defined
49
+ q ._last_query = AstroQuery ('GET' , 'http://dummy' )
50
+ with pytest .raises (ValueError ):
51
+ res = q .ephemeris ('dummy-planet-name' )
52
+
53
+
45
54
def test_ephemeris_query_Uranus (patch_request ):
46
55
47
56
bodytable , ringtable = pds .RingNode .ephemeris (
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ ephemerides of the rings and small moons around Uranus as viewed from ALMA:
25
25
>> > bodytable, ringtable = RingNode.ephemeris(planet = ' Uranus' ,
26
26
... epoch = ' 2024-05-08 22:39' ,
27
27
... location = (- 67.755 * u.deg, - 23.029 * u.deg, 5000 * u.m)) # doctest: +REMOTE_DATA
28
- >> > print (ringtable)
28
+ >> > print (ringtable) # doctest: +REMOTE_DATA
29
29
ring pericenter ascending node
30
30
deg deg
31
31
------ - ---------- --------------
You can’t perform that action at this time.
0 commit comments