summaryrefslogtreecommitdiff
path: root/test/engine/alltests.py
blob: 4e76292989432d4fc6048c2c618540da1cc19dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import testenv; testenv.configure_for_tests()
import unittest


def suite():
    modules_to_test = (
        # connectivity, execution
        'engine.parseconnect',
        'engine.pool',
        'engine.bind',
        'engine.reconnect',
        'engine.execute',
        'engine.metadata',
        'engine.transaction',

        # schema/tables
        'engine.reflection',

        )
    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__':
    testenv.main(suite())