コード例 #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)
コード例 #2
0
ファイル: unittest.py プロジェクト: BrythonServer/brython
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()
            )
コード例 #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()
            )
コード例 #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)