summaryrefslogtreecommitdiff
path: root/tests/__init__.py
blob: fa393d988b194b378a2462c45d0eb141bdfa48e4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
import unittest


def suite():
    test_loader = unittest.TestLoader()
    test_suite = test_loader.discover('.', pattern='test_*.py')
    return test_suite


if __name__ == '__main__':
    runner = unittest.runner.TextTestRunner()
    result = runner.run(suite())
    sys.exit(not result.wasSuccessful())