File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,19 @@ def test_get_ephemeris_Moon_phase(patch_post):
176
176
assert result ['Moon phase' ][0 ] >= 0
177
177
178
178
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
+
179
192
def test_get_ephemeris_by_name_empty (patch_post ):
180
193
with pytest .raises (EmptyResponseError ):
181
194
mpc .core .MPC .get_ephemeris ('340P' , location = 'G37' )
You can’t perform that action at this time.
0 commit comments