test_integration.py 588 B

123456789101112131415161718192021
  1. import unittest
  2. from .test_postgresql import TestPostGresql
  3. from .test_mongodb import TestMongoDB
  4. from .test_mysql import TestMySQLDatabase
  5. from .test_pwman import suite
  6. def complete_suite(suite):
  7. loader = unittest.TestLoader()
  8. suite.addTest(loader.loadTestsFromTestCase(TestPostGresql))
  9. suite.addTest(loader.loadTestsFromTestCase(TestMySQLDatabase))
  10. suite.addTest(loader.loadTestsFromTestCase(TestMongoDB))
  11. return suite
  12. if __name__ == '__main__':
  13. test_suite = complete_suite(suite())
  14. unittest.TextTestRunner(verbosity=2, failfast=True).run(test_suite)