summaryrefslogtreecommitdiff
path: root/test/base/alltests.py
blob: 887e4567cc9cb85ab865da2e760c3d716a5aefb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import testbase
import unittest

def suite():
    modules_to_test = (
        # core utilities
        'base.dependency',
        )
    alltests = unittest.TestSuite()
    for name in modules_to_test:
        mod = __import__(name)
        for token in name.split('.')[1:]:
            mod = getattr(mod, token)
        alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
    return alltests


if __name__ == '__main__':
    testbase.runTests(suite())