Exemplo n.º 1
0
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
Exemplo n.º 2
0
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
Exemplo n.º 3
0
def getUsage():
    strTests = "%s, %s, %s, %s, %s" % \
        (CommonTestSuite.getSuite(), FormulaTestSuite.getSuite(),
         FrenchTestSuite.getSuite(), GermanTestSuite.getSuite(),
         EnglishTestSuite.getSuite())
    return usage % strTests
Exemplo n.º 4
0
def getUsage():
    strTests = "%s, %s, %s, %s" % (CommonTestSuite.getSuite(), FormulaTestSuite.getSuite(),
                               FrenchTestSuite.getSuite(), GermanTestSuite.getSuite())
    return usage % strTests