25 lines
559 B
Python
25 lines
559 B
Python
import logging
|
|
from .tests import basic
|
|
from .tests import gac_100
|
|
|
|
logging.getLogger().setLevel(logging.WARNING)
|
|
|
|
tests = (
|
|
("basic", basic),
|
|
("gac 100", gac_100),
|
|
)
|
|
|
|
def main():
|
|
for test_name, test_module in tests:
|
|
try:
|
|
test_module.main()
|
|
print(" ✓ {}".format(test_name))
|
|
except AssertionError as ae:
|
|
print(" ✗ {}: {}".format(test_name, ae.args[0]))
|
|
except Exception as e:
|
|
print(" ! {} {}".format(test_name, e))
|
|
raise
|
|
|
|
if __name__ == '__main__':
|
|
main()
|