123456789101112131415161718192021 |
- import unittest
- from .test_postgresql import TestPostGresql
- from .test_mongodb import TestMongoDB
- from .test_mysql import TestMySQLDatabase
- from .test_pwman import suite
- def complete_suite(suite):
- loader = unittest.TestLoader()
- suite.addTest(loader.loadTestsFromTestCase(TestPostGresql))
- suite.addTest(loader.loadTestsFromTestCase(TestMySQLDatabase))
- suite.addTest(loader.loadTestsFromTestCase(TestMongoDB))
- return suite
- if __name__ == '__main__':
- test_suite = complete_suite(suite())
- unittest.TextTestRunner(verbosity=2, failfast=True).run(test_suite)
|