Skip to content

Commit 88e103e

Browse files
committed
Revert "Remove misplaced code."
This reverts commit 289408c.
1 parent bd1079a commit 88e103e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

astroquery/mpc/tests/test_mpc.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,19 @@ def test_get_ephemeris_Moon_phase(patch_post):
176176
assert result['Moon phase'][0] >= 0
177177

178178

179+
def test_get_ephemeris_Uncertainty(patch_post):
180+
# this test requires an object with uncertainties != N/A
181+
result = mpc.core.MPC.get_ephemeris('2024 AA')
182+
assert result['Uncertainty 3sig'].quantity[0] > 0 * u.arcsec
183+
184+
185+
def test_get_ephemeris_Moon_phase_and_Uncertainty(patch_post):
186+
# this test requires an object with uncertainties != N/A
187+
result = mpc.core.MPC.get_ephemeris('2024 AA', location='G37')
188+
assert result['Moon phase'][0] >= 0
189+
assert result['Uncertainty 3sig'].quantity[0] > 0 * u.arcsec
190+
191+
179192
def test_get_ephemeris_by_name_empty(patch_post):
180193
with pytest.raises(EmptyResponseError):
181194
mpc.core.MPC.get_ephemeris('340P', location='G37')

0 commit comments

Comments
 (0)