本文整理汇总了Python中MiscLib.TestUtils.getTestSuite方法的典型用法代码示例。如果您正苦于以下问题:Python TestUtils.getTestSuite方法的具体用法?Python TestUtils.getTestSuite怎么用?Python TestUtils.getTestSuite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MiscLib.TestUtils
的用法示例。
在下文中一共展示了TestUtils.getTestSuite方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testEggNunciateSingle"
, "testEggNunciateTwo"
, "testEggNunciateGarage"
, "testEggNunciateAlarm"
, "testEggNunciateGarageAlarm"
],
"component":
[ "testDummy"
],
"integration":
[ "testDummy"
],
"pending":
[ "testDummy"
]
}
return TestUtils.getTestSuite(TestEggNunciate, testdict, select=select)
示例2: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testUnits"
, "testNull"
, "testLink"
, "testLinkType"
, "testLinkCreated"
, "testLinkRdfType"
, "testLinkUnknownUri"
, "testLinkWithGraph"
, "testLinkWithNotExistentGraph"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestLinks, testdict, select=select)
示例3: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"zzunit":
[ "testDummy"
],
"zzcomponent":
[ "testDummy"
],
"integration":
[ "testSend"
, "testListen"
],
"zzpending":
[ "testDummy"
]
}
return TestUtils.getTestSuite(TestCounters, testdict, select=select)
示例4: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ #"testUnits"
"testGetDatasetMetadataResponse"
],
"component":
[ #"testComponents"
],
"integration":
[ #"testIntegration"
],
"pending":
[ #"testPending"
]
}
return TestUtils.getTestSuite(TestGetDatasetMetadataHandler, testdict, select=select)
示例5: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testUnits"
, "testNull"
,"testDatasetSubmission"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[
]
}
return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
示例6: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of component tests
"integration" return suite of integration tests
"all" return suite of unit and component tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testUnits"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
, "testGetHomepage"
, "testGetStatus"
, "testGetConfig"
, "testCommand"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestWbAccess, testdict, select=select)
示例7: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[
"testGenerationPrecedesInvalidation",
"testGenerationPrecedesUsage",
"testUsagePrecedesInvalidation",
"testGenerationOrdering",
"testInvalidationOrdering",
"testDerivationUsageGenerationOrdering",
"testDerivationGenerationGenerationOrdering",
"testWasStartedByOrdering",
"testWasEndedByOrdering",
"testSpecializationGenerationOrdering",
"testSpecializationInvalidationOrdering"
],
}
return TestUtils.getTestSuite(TestEntityOrdering, testdict, select=select)
示例8: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ #"testUnits"
"testDatasetCreation"
, "testSingleFileSubmission"
, "testDirectorySubmission"
, "testSubsequentDatasetSubmission"
, "testEmptyDirectorySubmission"
, "testDatasetDeletion"
],
"component":
[ #"testComponents"
],
"integration":
[ #"testIntegration"
],
"pending":
[ #"testPending"
]
}
return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
示例9: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testUnits"
, "testNull"
, "testCreateRoMetadata"
, "testReadRoAnnotationBody"
, "testGetInitialRoAnnotations"
, "testQueryAnnotations"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestROSRSMetadata, testdict, select=select)
示例10: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testUnits"
, "testNull"
],
"component":
[ "testComponents"
, "testUnauthUserHTTP"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
, "testReadMeSSH"
, "testReadMeDAVfs"
, "testCreateFileDAVfs"
, "testUpdateFileDAVfs"
, "testDeleteFileDAVfs"
, "testDeleteFileCIFS"
, "testDeleteFileHTTP"
]
}
return TestUtils.getTestSuite(TestFileDefaultArea, testdict, select=select)
示例11: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testTimerEvent" ,
"testTimerDisable" ,
"testTimerHold" ,
"testTimerHoldPI" ,
"testTimerEventWithState" ,
"testTimerEventWithStateAndPresence" ,
"testTimerEventWithAnalogue"
],
"zzcomponent":
[ "testComponents"
],
"zzintegration":
[ "testIntegration"
],
"zzpending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestTimerAction, testdict, select=select)
示例12: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
testdict = {
"unit":
[ "testEventCreate1"
, "testEventCreate2"
, "testMakeEvent1"
, "testMakeEvent2"
, "testMakeEvent3"
, "testMakeEvent4"
, "testMakeEvent5"
, "testEventEqual1"
, "testEventEqual2"
, "testEventEqual3"
, "testEventEqual4"
, "testEventEqual5"
, "testEventEqual6"
, "testEventEqual7"
, "testEventEqual8"
, "testEventString1"
, "testUnits"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestEventVals, testdict, select=select)
示例13: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testDummy"
],
"component":
[ "testSetTimeDirect"
, "testSetTime"
, "testTimeSignalReboot"
, "testTimeSignalSetTime"
],
"integration":
[ "testDummy"
],
"pending":
[ "testDummy"
# these two need rework to pick up UDP commands being sent out.
, "testTimeSignalResetSiteplayer"
, "testTimeOfDayResetSiteplayer"
]
}
return TestUtils.getTestSuite(TestWebbrickMonitor, testdict, select=select)
示例14: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit", testargs=[("arg","val")]):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testUnits"
, "testCase"
, "testArg"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
for (argname,argval) in testargs:
if argval: setattr(TestExample, argname, argval)
return TestUtils.getTestSuite(TestExample, testdict, select=select)
示例15: getTestSuite
# 需要导入模块: from MiscLib import TestUtils [as 别名]
# 或者: from MiscLib.TestUtils import getTestSuite [as 别名]
def getTestSuite(select="unit"):
"""
Get test suite
select is one of the following:
"unit" return suite of unit tests only
"component" return suite of unit and component tests
"all" return suite of unit, component and integration tests
"pending" return suite of pending tests
name a single named test to be run
"""
testdict = {
"unit":
[ "testUnits"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
, "testTestEventHTTPClientIntro"
, "testSubscriptionForwarding1"
, "testSubscriptionForwarding2"
, "testSubscriptionForwarding3"
, "testSubscriptionForwarding4"
, "testTestEventHTTPClientDone"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestEventHTTPClient, testdict, select=select)