当前位置: 首页>>代码示例>>Python>>正文


Python TestUtils.getTestSuite方法代码示例

本文整理汇总了Python中TestUtils.getTestSuite方法的典型用法代码示例。如果您正苦于以下问题:Python TestUtils.getTestSuite方法的具体用法?Python TestUtils.getTestSuite怎么用?Python TestUtils.getTestSuite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TestUtils的用法示例。


在下文中一共展示了TestUtils.getTestSuite方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: getTestSuite

# 需要导入模块: import TestUtils [as 别名]
# 或者: from 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": 
            [ 
             "oai_listIdentifiers"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestOaiClient, testdict, select=select)
开发者ID:bodleian,项目名称:datafinder,代码行数:29,代码来源:TestOaiClient.py

示例2: getTestSuite

# 需要导入模块: import TestUtils [as 别名]
# 或者: from 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"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(SparqlQueryTestCase, testdict, select=select)
开发者ID:anusharanganathan,项目名称:RDFDatabank,代码行数:29,代码来源:SparqlQueryTestCase.py


注:本文中的TestUtils.getTestSuite方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。