Esempio n. 1
0
def run_unit_tests():
    from unittest import TextTestRunner

    from tests.unittest import load_tests

    result = TextTestRunner(verbosity=2).run(load_tests())
    if not result.wasSuccessful():
        raise RuntimeError("Unittest failed.")
Esempio n. 2
0
def run_unit_tests():
    from unittest import TextTestRunner

    from tests.unittest import load_tests

    result = TextTestRunner(verbosity=2).run(load_tests())
    if not result.wasSuccessful():
        raise RuntimeError("Unittest failed.")
Esempio n. 3
0
def run_unit_tests():
    from unittest import TextTestRunner

    from tests.unittest import load_tests

    TextTestRunner(verbosity=2).run(load_tests())