A library that computes the ephemerides.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

21 rader
581 B

  1. import unittest
  2. from kosmorrolib import model, core
  3. from kosmorrolib.enum import ObjectIdentifier
  4. class DataTestCase(unittest.TestCase):
  5. def test_object_radius_must_be_set_to_get_apparent_radius(self):
  6. o = model.Planet(ObjectIdentifier.SATURN, "SATURN")
  7. with self.assertRaises(ValueError) as context:
  8. o.get_apparent_radius(
  9. core.get_timescale().now(), core.get_skf_objects()["earth"]
  10. )
  11. self.assertEqual(("Missing radius for SATURN",), context.exception.args)
  12. if __name__ == "__main__":
  13. unittest.main()