However spice.bodvrd returns a tuple of (length, array_of_values). So in both cases mass_earth[0] is the integer 1, which is probably not what this test is supposed to do.
At this point oscelt and oscltx are respectively called with the wrong values, and returns the correct result for those wrong values. We then check that the correct wrong values are returned.
These tests need to be re-written to use
_len, mass_earth = spice_bodvrd("EARTH", "GM", 1)
and the correct result for the actual mass of the earth needs to be used.
The functions
test_oscelt
andtest_oscltx
both contain the lines:However
spice.bodvrd
returns a tuple of(length, array_of_values)
. So in both casesmass_earth[0]
is the integer 1, which is probably not what this test is supposed to do.At this point
oscelt
andoscltx
are respectively called with the wrong values, and returns the correct result for those wrong values. We then check that the correct wrong values are returned.These tests need to be re-written to use
and the correct result for the actual mass of the earth needs to be used.