Exemple #1
0
def suite():
    test_list = tests('input', 'messages')

    if module_exists('rest_framework'):
        test_list += tests('external_drf', '')

    return testlib.TestSuite([
        unittest.makeSuite(test, suiteClass=testlib.TestSuite)
        for test in test_list
    ])
Exemple #2
0
def suite():
    input_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                             'functional')
    suite = testlib.TestSuite()
    for fname in os.listdir(input_dir):
        if fname != '__init__.py' and fname.endswith('.py'):
            test_file = TestFile(input_dir, fname)
            if UPDATE:
                suite.addTest(LintModuleOutputUpdate(test_file))
            else:
                suite.addTest(LintModuleTest(test_file))
    return suite
def suite():
    return testlib.TestSuite([
        unittest.makeSuite(test, suiteClass=testlib.TestSuite)
        for test in gen_tests(FILTER_RGX)
    ])
Exemple #4
0
def suite():
    return testlib.TestSuite([unittest.makeSuite(test, suiteClass=testlib.TestSuite)
                              for test in tests()])
Exemple #5
0
def suite():
    return testlib.TestSuite([
        unittest.makeSuite(test, suiteClass=testlib.TestSuite)
        for test in make_tests(INPUT_DIR, MESSAGES_DIR, FILTER_RGX, CALLBACKS)
    ])