Skip to content

Commit 66c87f2

Browse files
emolterbsipocz
authored andcommitted
fixes suggested by @eerovaher
1 parent 95c9570 commit 66c87f2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

astroquery/solarsystem/pds/tests/test_ringnode.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy as np
44

55
import astropy.units as u
6+
from ....query import AstroQuery
67

78
from astroquery.utils.mocks import MockResponse
89
from ... import pds
@@ -42,6 +43,14 @@ def patch_request(request):
4243

4344
# --------------------------------- actual test functions
4445

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+
4554
def test_ephemeris_query_Uranus(patch_request):
4655

4756
bodytable, ringtable = pds.RingNode.ephemeris(

docs/solarsystem/pds/pds.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ephemerides of the rings and small moons around Uranus as viewed from ALMA:
2525
>>> bodytable, ringtable = RingNode.ephemeris(planet='Uranus',
2626
... epoch='2024-05-08 22:39',
2727
... location = (-67.755 * u.deg, -23.029 * u.deg, 5000 * u.m)) # doctest: +REMOTE_DATA
28-
>>> print(ringtable)
28+
>>> print(ringtable) # doctest: +REMOTE_DATA
2929
ring pericenter ascending node
3030
deg deg
3131
------- ---------- --------------

0 commit comments

Comments
 (0)