コード例 #1
0
ファイル: allTestSuite.py プロジェクト: colincwilson/asrt
def asrtTestSuite(unitTestList=None):
    """Build test suite for all test sui tes in the script folder
    """
    # Return test suite objects
    commonTestSuite = CommonTestSuite.getCommonTestSuite(unitTestList)
    frenchTestSuite = FrenchTestSuite.getFrenchTestSuite(unitTestList)
    germanTestSuite = GermanTestSuite.getGermanTestSuite(unitTestList)
    englishTestSuite = EnglishTestSuite.getEnglishTestSuite(unitTestList)
    formulaTestSuite = FormulaTestSuite.getFormulaTestSuite(unitTestList)

    allTestSuite = []
    if commonTestSuite is not None:
        allTestSuite.extend(commonTestSuite)
    if formulaTestSuite is not None:
        allTestSuite.extend(formulaTestSuite)
    if frenchTestSuite is not None:
        allTestSuite.extend(frenchTestSuite)
    if germanTestSuite is not None:
        allTestSuite.extend(germanTestSuite)
    if englishTestSuite is not None:
        allTestSuite.extend(englishTestSuite)

    allTests = unittest.TestSuite(allTestSuite)

    return allTests
コード例 #2
0
ファイル: allTestSuite.py プロジェクト: idiap/asrt
def asrtTestSuite(unitTestList = None):
    """Build test suite for all test sui tes in the script folder
    """
    #Return test suite objects
    commonTestSuite = CommonTestSuite.getCommonTestSuite(unitTestList)
    frenchTestSuite = FrenchTestSuite.getFrenchTestSuite(unitTestList)
    germanTestSuite = GermanTestSuite.getGermanTestSuite(unitTestList)
    englishTestSuite = EnglishTestSuite.getEnglishTestSuite(unitTestList)
    formulaTestSuite = FormulaTestSuite.getFormulaTestSuite(unitTestList)

    allTestSuite = []
    if commonTestSuite is not None:
        allTestSuite.extend(commonTestSuite)
    if formulaTestSuite is not None:
        allTestSuite.extend(formulaTestSuite)
    if frenchTestSuite is not None:
        allTestSuite.extend(frenchTestSuite)
    if germanTestSuite is not None:
        allTestSuite.extend(germanTestSuite)
    if englishTestSuite is not None:
        allTestSuite.extend(englishTestSuite)

    allTests = unittest.TestSuite(allTestSuite)

    return allTests
コード例 #3
0
ファイル: allTestSuite.py プロジェクト: colincwilson/asrt
def getUsage():
    strTests = "%s, %s, %s, %s, %s" % \
        (CommonTestSuite.getSuite(), FormulaTestSuite.getSuite(),
         FrenchTestSuite.getSuite(), GermanTestSuite.getSuite(),
         EnglishTestSuite.getSuite())
    return usage % strTests
コード例 #4
0
def getUsage():
    strTests = "%s, %s, %s, %s" % (CommonTestSuite.getSuite(), FormulaTestSuite.getSuite(),
                               FrenchTestSuite.getSuite(), GermanTestSuite.getSuite())
    return usage % strTests