Exemple #1
0
def load_brython_test_cases(base_path=''):
    ret = []
    for label, options in utils.discover_brython_test_modules():
        tcs = []
        for filenm, caption in options:
            tcs.append(BrythonModuleTestCase(filenm, caption, base_path))
        ret.append(NamedTestSuite('Brython :' + label, tcs))
    return unittest.TestSuite(ret)
Exemple #2
0
def load_brython_test_cases():
    return unittest.TestSuite(
                NamedTestSuite('Brython : ' + label,
                               (BrythonModuleTestCase(filenm, caption)
                                        for filenm, caption in options)
                               )
                for label, options in utils.discover_brython_test_modules()
            )
Exemple #3
0
def load_brython_test_cases(base_path=''):
    return unittest.TestSuite(
                NamedTestSuite('Brython : ' + label,
                               (BrythonModuleTestCase(filenm, caption, base_path)
                                        for filenm, caption in options)
                               )
                for label, options in utils.discover_brython_test_modules()
            )
Exemple #4
0
def load_brython_test_cases(base_path=''):
    ret = []
    for label, options in utils.discover_brython_test_modules():
        tcs = []
        for filenm, caption in options:
            tcs.append(BrythonModuleTestCase(filenm, caption, base_path))
        ret.append(NamedTestSuite('Brython :' + label, tcs))
    return unittest.TestSuite(ret)