equal
deleted
inserted
replaced
2 |
2 |
3 import unittest |
3 import unittest |
4 |
4 |
5 from tests import test_rowdict |
5 from tests import test_rowdict |
6 from tests import test_pgmanager |
6 from tests import test_pgmanager |
7 from tests import test_prettysize |
|
8 |
7 |
9 enable_mysql = True |
8 enable_mysql = True |
10 try: |
9 try: |
11 from tests import test_mymanager |
10 from tests import test_mymanager |
12 except ImportError as e: |
11 except ImportError as e: |
16 loader = unittest.TestLoader() |
15 loader = unittest.TestLoader() |
17 |
16 |
18 suite = unittest.TestSuite() |
17 suite = unittest.TestSuite() |
19 suite.addTests(loader.loadTestsFromModule(test_rowdict)) |
18 suite.addTests(loader.loadTestsFromModule(test_rowdict)) |
20 suite.addTests(loader.loadTestsFromModule(test_pgmanager)) |
19 suite.addTests(loader.loadTestsFromModule(test_pgmanager)) |
21 suite.addTests(loader.loadTestsFromModule(test_prettysize)) |
|
22 |
20 |
23 if enable_mysql: |
21 if enable_mysql: |
24 suite.addTests(loader.loadTestsFromModule(test_mymanager)) |
22 suite.addTests(loader.loadTestsFromModule(test_mymanager)) |
25 |
23 |
26 runner = unittest.TextTestRunner(verbosity=2) |
24 runner = unittest.TextTestRunner(verbosity=2) |