A library that computes the ephemerides.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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