test_guitastro.py 552 Bytes
import doctest
import sys
import os

sys.path.append(os.path.abspath('../..'))


# Unitary tests

import guitastro

doctest.testmod(guitastro.angles)
#guitastro.angles.Angle().infos("doctest")

doctest.testmod(guitastro.coords)
#guitastro.coords.Coords().infos("doctest")

doctest.testmod(guitastro.dates)
#doctest.testmod(guitastro.dates, verbose=True)
#guitastro.dates.Date().infos("doctest")

guitastro.durations.Duration().infos("doctest")
#doctest.testmod(guitastro.durations)


# Add here other more complicated tests