File: test_integration.py

package info (click to toggle)
pwman3 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: python: 3,421; makefile: 215; sh: 61; javascript: 6
file content (23 lines) | stat: -rw-r--r-- 663 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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__':
    import os
    test_suite = complete_suite(suite())
    unittest.TextTestRunner(verbosity=2,
                            failfast=int(os.getenv("PWMAN_FAILFAST", "1"))).run(test_suite)