A library that computes the ephemerides.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

21 righe
426 B

  1. #!/usr/bin/env python3
  2. from doctest import testmod, NORMALIZE_WHITESPACE
  3. from kosmorrolib import *
  4. if __name__ == "__main__":
  5. failures = 0
  6. tests = 0
  7. for module in [events, ephemerides, model]:
  8. (f, t) = testmod(module, optionflags=NORMALIZE_WHITESPACE)
  9. failures += f
  10. tests += t
  11. if failures == 0:
  12. print("All %d tests successfully passed." % tests)
  13. else:
  14. exit(1)