本文整理汇总了Python中MiscUtils.TestUtils类的典型用法代码示例。如果您正苦于以下问题:Python TestUtils类的具体用法?Python TestUtils怎么用?Python TestUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TestUtils类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: runTestSuite
def runTestSuite():
"""
Transfer function for setup.py script ro-manager-test
"""
base = os.path.dirname(__file__)
#print "Run test suite assuming base path "+base
sys.path.insert(0, os.path.normpath(base+"/..") )
sys.path.insert(0, os.path.normpath(base+"/../..") )
sys.path.insert(0, os.path.normpath(base+"/../../iaeval/test") )
sys.path.insert(0, os.path.normpath(base+"/../../sync/test") )
#print "Path: "+repr(sys.path)
TestUtils.runTests("TestAll", getTestSuite, sys.argv)
return 0
开发者ID:almudenaris,项目名称:ro-manager,代码行数:13,代码来源:TestAll.py
示例2: getTestSuite
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",
"testSetupConfig",
"testGridRead",
"testGridMatch",
"testMkMinim",
"testChecklistEval",
"testChecklistEvalExcel",
],
"component": ["testComponents"],
"integration": ["testIntegration"],
"pending": ["testPending"],
}
return TestUtils.getTestSuite(TestMkMinim, testdict, select=select)
开发者ID:wf4ever,项目名称:ro-manager,代码行数:27,代码来源:TestMkMinim.py
示例3: getTestSuite
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"
, "testPush"
, "testPushZip"
, "testPushZipSynchronous"
, "testPushZipAsynchronous"
, "testCheckout"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestSyncCommands, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestSyncCommands.py
示例4: getTestSuite
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"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestROSupport, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:26,代码来源:TestROSupport.py
示例5: getTestSuite
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"
, "testManifestContent"
, "testAddAggregatedResources"
, "testAddAggregatedResourcesCommand"
, "testGetRoUri"
, "testGetComponentUri"
, "testGetComponentUriRel"
, "testGetComponentUriRelUri"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestManifest, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:34,代码来源:TestManifest.py
示例6: getTestSuite
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"
, "testSimpleAskQuery"
, "testSimpleSelectQuery"
, "testDatatypeFilter"
, "testIntegerStringFilter"
, "testRegexFilter"
, "testDefaultQuery"
, "testGraphReadTerms"
, "testLiteralCompare"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestSparqlQueries, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:34,代码来源:TestSparqlQueries.py
示例7: getTestSuite
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)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:31,代码来源:TestROSRSMetadata.py
示例8: getTestSuite
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)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:34,代码来源:TestLinks.py
示例9: getTestSuite
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"
, "testSetupConfig"
, "testMinimRead"
, "testGetConstraints"
, "testGetConstraint"
, "testGetModels"
, "testGetModel"
, "testGetRequirements"
, "testGetListRequirements"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestMinimAccess2, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:35,代码来源:TestMinimAccess2.py
示例10: getTestSuite
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":
[
],
"component":
[ "testSnapshot"
, "testArchive"
],
"integration":
[
],
"pending":
[
]
}
return TestUtils.getTestSuite(TestEvo, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:27,代码来源:TestEvo.py
示例11: getTestSuite
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"
, "testCreateRo"
, "testAddGetAggregatedResources"
, "testClassifyAggregatedResources"
, "testGetAsZip"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
, "testQueryAnnotationsRemote"
]
}
return TestUtils.getTestSuite(TestRemoteROMetadata, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestRemoteROMetadata.py
示例12: getTestSuite
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"
, "testHelpers"
, "testListROs"
, "testCreateRO"
, "testDeleteRO"
, "testGetROManifest"
, "testGetROPage"
, "testGetROZip"
# Resource tests
, "testAggregateResourceInt"
, "testDeleteResourceInt"
, "testAggregateResourceExt"
, "testDeleteResourceExt"
, "testGetROResource"
, "testGetROResourceRDF"
, "testGetROResourceProxy"
# Annotation tests
, "testCreateROAnnotationInt"
, "testGetROAnnotationGraph"
, "testCreateROAnnotationExt"
, "testUpdateROAnnotationInt"
, "testUpdateROAnnotationExt"
, "testRemoveROAnnotation"
# Evolution tests
, "testCopyRO"
, "testCancelCopyRO"
, "testUpdateROStatus"
, "testGetROEvolution"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestROSRS_Session, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:53,代码来源:TestROSRS_Session.py
示例13: getTestSuite
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"
, "testCreateGraphRoUri"
, "testCreateReadRoAnnotationBody"
, "testCreateReadFileAnnotationBody"
, "testGetInitialRoAnnotations"
, "testAddGetRoAnnotations"
, "testAddRoAnnotationIsAggregated"
, "testRemoveGetRoAnnotations"
, "testReplaceGetRoAnnotations"
, "testAddGetFileAnnotations"
, "testRemoveGetFileAnnotations"
, "testAddGetAllAnnotations"
, "testAddGetAnnotationValues"
, "testQueryAnnotations"
, "testQueryAnnotationsWithMissingGraph"
, "testGetRoUri"
, "testGetComponentUri"
, "testGetComponentUriRel"
, "testGetComponentUriRelUri"
, "testAddAggregatedResources"
, "testAddAggregatedResourcesWithDirs"
, "testGetAggregatedResources"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
, "testCreateGraphRoUri2"
],
"pending":
[ "testPending"
, "testQueryAnnotationsRemote"
]
}
return TestUtils.getTestSuite(TestROMetadata, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:50,代码来源:TestROMetadata.py
示例14: getTestSuite
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"
, "testEscapeJSON"
, "testHelloWorld"
, "testSimpleQuery"
, "testSimpleQuotedJson"
, "testSimpleQuotedHtml"
, "testQueryResultMerge"
, "testQueryResultPreBinding"
, "testSequence"
, "testAlternative"
, "testAlternativeMissing"
, "testRepetition"
, "testRepetitionMax"
, "testRepetitionAlt"
, "testQueryForNesting"
, "testNesting"
, "testReportEvalResultUri"
, "testReportEvalResultLabel"
, "testReportEvalResultClass"
, "testReportEvalItemJSON"
, "testTrafficlightJSON"
, "testReportEvalItemHTML"
, "testTrafficlightHTML"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestRdfReport, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:49,代码来源:TestRdfReport.py
示例15: getTestSuite
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"
, "testGetFileUri"
, "testGetUriFile"
, "testGetRoUri"
, "testGetComponentUri"
, "testGetComponentUriRel"
, "testGetGraphRoUri"
, "testGetAnnotationByName"
, "testGetAnnotationByUri"
, "testGetAnnotationNameByUri"
, "testMakeAnnotationFilename"
, "testCreateReadRoAnnotationBody"
, "testCreateReadFileAnnotationBody"
, "testGetInitialRoAnnotations"
, "testAddGetRoAnnotations"
, "testRemoveGetRoAnnotations"
, "testReplaceGetRoAnnotations"
, "testAddGetFileAnnotations"
, "testRemoveGetFileAnnotations"
, "testAddGetAllAnnotations"
, "testAddGetAnnotationValues"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestAnnotationUtils, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:47,代码来源:TestAnnotationUtils.py
示例16: getTestSuite
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"
#, "testHelpVersion"
#, "testHelpOptions"
, "testHelpCommands"
, "testInvalidCommand"
, "testConfig"
, "testConfigVerbose"
, "testCreate"
, "testCreateDefaults"
, "testCreateBadDir"
, "testStatus"
, "testStatusDefault"
, "testList"
, "testListDefault"
, "testAddDirectory"
, "testAddExternalResource"
, "testRemove"
, "testRemoveWildcard"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestBasicCommands, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:44,代码来源:TestBasicCommands.py
示例17: getTestSuite
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"
, "testAnnotate"
, "testAnnotateType"
, "testAnnotateKeywords"
, "testAnnotateDescription"
, "testAnnotateCreated"
, "testAnnotateTypeUri"
, "testAnnotateTypeCurie"
, "testAnnotateMultiple"
, "testAnnotateFileWithEscapes"
, "testAnnotationDisplayRo"
, "testAnnotationDisplayFile"
, "testAnnotationDisplayDefault"
, "testAnnotateWithGraph"
, "testAnnotateWithNotExistentGraph"
, "testAnnotateWildcardPattern1"
, "testAnnotateWildcardPattern2"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestAnnotations, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:43,代码来源:TestAnnotations.py
示例18: getTestSuite
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"
, "testSetupConfig"
, "testEvalAllPresent"
, "testEvalMustMissing"
, "testEvalShouldMissing"
, "testEvalMayMissing"
, "testEvalFormatSummary"
, "testEvalFormatDetail"
, "testEvaluateChecklistCommand"
, "testEvaluateWfInputs"
, "testEvaluateWfInputsRDF"
, "testEvaluateMissing"
, "testEvaluateMissingRDF"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
, "testEvaluateChecklistRemote"
]
}
return TestUtils.getTestSuite(TestEvalChecklist, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:40,代码来源:TestEvalChecklist.py
示例19: getTestSuite
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"
, "testCollectDirsShallow"
, "testCollectDirsRecursive"
, "testCollectDirsRecursiveBaseEndswithSep"
, "testCollectDirsRecursiveEmptyBase"
, "testCollectFilesShallow"
, "testCollectFilesRecursive"
, "testCollectFilesRecursiveBaseEndswithSep"
, "testCollectFilesRecursiveEmptyBase"
, "testCollectAllShallow"
, "testCollectAllRecursive"
, "testCollectAllRecursiveBaseEndswithSep"
, "testCollectAllRecursiveEmptyBase"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestScanDirectories, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:38,代码来源:TestScanDirectories.py
示例20: getTestSuite
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"
, "testEvalQueryTestModelMin"
, "testEvalQueryTestModelExists"
, "testEvalQueryTestModel"
, "testEvalQueryTestReportList"
, "testEvalQueryTestChembox"
, "testEvalQueryTestChemboxFail"
, "testEvalFormatSummary"
, "testEvalFormatDetail"
, "testEvaluateRDF"
],
"component":
[ "testComponents"
],
"integration":
[ "testIntegration"
],
"pending":
[ "testPending"
]
}
return TestUtils.getTestSuite(TestEvalQueryMatch, testdict, select=select)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:36,代码来源:TestEvalQueryMatch.py
注:本文中的MiscUtils.TestUtils类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论