• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python MiscLib.TestUtils类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中MiscLib.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:piotrholubowicz,项目名称:ro-manager,代码行数:13,代码来源:TestAll.py


示例2: getTestSuite

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)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:30,代码来源:TestTestUtils.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 = {
        "zzunit": 
            [ "testDummy"
            ],
        "zzcomponent":
            [ "testDummy"
            ],
        "integration":
            [ "testSend"
            , "testListen"
            ],
        "zzpending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestCounters, testdict, select=select)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:27,代码来源:TestAsterisk.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"
            , "testNull"
            , "testLink"
            , "testLinkType"
            , "testLinkCreated"
            , "testLinkRdfType"
            , "testLinkUnknownUri"
            , "testLinkWithGraph"
            , "testLinkWithNotExistentGraph"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestLinks, testdict, select=select)
开发者ID:piotrholubowicz,项目名称:ro-manager,代码行数:34,代码来源:TestLinks.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"
            ,"testDatasetSubmission"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ 

            ]
        }
    return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
开发者ID:dataflow,项目名称:DataStage,代码行数:29,代码来源:TestDatasetSubmission.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"
              "testGetDatasetMetadataResponse"
            ],
        "component":
            [ #"testComponents"
            ],
        "integration":
            [ #"testIntegration"
            ],
        "pending":
            [ #"testPending"
            ]
        }
    return TestUtils.getTestSuite(TestGetDatasetMetadataHandler, testdict, select=select)
开发者ID:bhavanaananda,项目名称:DataStage,代码行数:27,代码来源:TestGetDatasetMetadataHandler.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":
            [ 
             "testGenerationPrecedesInvalidation",
             "testGenerationPrecedesUsage",
             "testUsagePrecedesInvalidation",
             "testGenerationOrdering",
             "testInvalidationOrdering",
             "testDerivationUsageGenerationOrdering",
             "testDerivationGenerationGenerationOrdering",
             "testWasStartedByOrdering",
             "testWasEndedByOrdering",
             "testSpecializationGenerationOrdering",
             "testSpecializationInvalidationOrdering"
            ],
        }
    return TestUtils.getTestSuite(TestEntityOrdering, testdict, select=select)
开发者ID:wf4ever,项目名称:wfprov-test-cases,代码行数:28,代码来源:TestEntityOrdering.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 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)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:31,代码来源:TestWbAccess.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",
            "testCreateEventHandler1",
            "testMakeEventHandler1",
            "testMakeEventHandler2",
            "testMakeEventHandler3",
            "testMakeEventHandler4",
            "testMakeEventHandler5",
            "testEventHandlerEqual1",
            "testEventHandlerEqual2",
            "testEventHandlerEqual3",
            "testEventHandlerEqual4",
        ],
        "component": ["testComponents"],
        "integration": ["testIntegration"],
        "pending": ["testPending"],
    }
    return TestUtils.getTestSuite(TestEventHandler, testdict, select=select)
开发者ID:LawrenceK,项目名称:wb_gateway,代码行数:30,代码来源:TestEventHandler.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":
            [ "testUnits"
            , "testNull"
            , "testCreateRoMetadata"
            , "testReadRoAnnotationBody"
            , "testGetInitialRoAnnotations"
            , "testQueryAnnotations"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestROSRSMetadata, testdict, select=select)
开发者ID:piotrholubowicz,项目名称:ro-manager,代码行数:31,代码来源:TestROSRSMetadata.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"
              "testDatasetCreation"
            , "testSingleFileSubmission"
            , "testDirectorySubmission"
            , "testSubsequentDatasetSubmission"
            , "testEmptyDirectorySubmission"
            , "testDatasetDeletion"
            ],
        "component":
            [ #"testComponents"
            ],
        "integration":
            [ #"testIntegration"
            ],
        "pending":
            [ #"testPending"
            ]
        }
    return TestUtils.getTestSuite(TestDatasetSubmission, testdict, select=select)
开发者ID:mkozuharov,项目名称:DataStage,代码行数:32,代码来源:TestSubmitDataset.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": 
            [ "testTimerEvent" ,
            "testTimerDisable" ,
            "testTimerHold" , 
            "testTimerHoldPI" ,
            "testTimerEventWithState" ,
            "testTimerEventWithStateAndPresence" ,
            "testTimerEventWithAnalogue"
            ],
        "zzcomponent":
            [ "testComponents"
            ],
        "zzintegration":
            [ "testIntegration"
            ],
        "zzpending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestTimerAction, testdict, select=select)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:32,代码来源:TestTimer.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"
            ],
        "component":
            [ "testComponents"
            , "testUnauthUserHTTP"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            , "testReadMeSSH"
            , "testReadMeDAVfs"
            , "testCreateFileDAVfs"
            , "testUpdateFileDAVfs"
            , "testDeleteFileDAVfs"
            , "testDeleteFileCIFS"
            , "testDeleteFileHTTP"
            ]
        }
    return TestUtils.getTestSuite(TestFileDefaultArea, testdict, select=select)
开发者ID:mkozuharov,项目名称:DataStage,代码行数:35,代码来源:TestFileDefaultArea.py


示例14: getTestSuite

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)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:32,代码来源:TestEvent.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": 
            [ "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)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:32,代码来源:TestWebbrickMonitor.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"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            , "testTestEventHTTPClientIntro"
            , "testSubscriptionForwarding1"
            , "testSubscriptionForwarding2"
            , "testSubscriptionForwarding3"
            , "testSubscriptionForwarding4"
            , "testTestEventHTTPClientDone"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestEventHTTPClient, testdict, select=select)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:32,代码来源:TestEventHTTPClient.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 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"
            , "testOrigConfig"
            , "testMakeConfig"
            , "testCopyConfig"
            , "testSetConfig"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestWbConfigEdit, testdict, select=select)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:31,代码来源:TestWbConfigEdit.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": 
            [ "testLoadConfig"
            ],
        "component":
            [ "testDummy"
            ],
        "integration":
            [ "testOn"
            , "testRed"
            , "testGreen"
            , "testBlue"
            , "testCommand"
            , "testOff"
            , "testBadCommand"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestRgbLedLighting, testdict, select=select)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:32,代码来源:TestRgbLedLighting.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": 
            [ "testLoad"
            , "testRun"
            ],
        "component":
            [ "testDummy"
            ],
        "integration":
            [ "testDummy"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(TestScheduleProcessor, testdict, select=select)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:27,代码来源:TestScheduleProcessor.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": 
            [ "testDummy"
            ],
        "zzcomponent":
            [ "testDummy"
            ],
        "integration":
            [ "testLoad"
            , "testStartStop"
            , "testVolume"
            ],
        "pending":
            [ "testDummy"
            ]
        }
    return TestUtils.getTestSuite(testITunes, testdict, select=select)
开发者ID:AndyThirtover,项目名称:wb_gateway,代码行数:28,代码来源:TestITunes.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python MiscUtils.TestUtils类代码示例发布时间:2022-05-24
下一篇:
Python ServiceGroup.ServiceGroup类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap