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


Python EmulatorSetup.deleteConfig方法代码示例

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


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

示例1: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
 def tearDown(self):
     """
     Database deletion
     """
     self.testInit.clearDatabase()
     self.testInit.delWorkDir()
     self.testInit.tearDownCouch()
     EmulatorSetup.deleteConfig(self.configFile)
     return
开发者ID:AndresTanasijczuk,项目名称:WMCore,代码行数:11,代码来源:RetryManager_t.py

示例2: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
 def tearDown(self):
     """
     Database deletion
     """
     self.testInit.clearDatabase(modules=["WMCore.WMBS", "WMCore.BossAir", "WMCore.ResourceControl"])
     self.testInit.delWorkDir()
     self.testInit.tearDownCouch()
     EmulatorSetup.deleteConfig(self.configFile)
     return
开发者ID:amaltaro,项目名称:WMCore,代码行数:11,代码来源:JobTracker_t.py

示例3: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        """
        self.testInit.clearDatabase()
        EmulatorSetup.deleteConfig(self.configFile)

        return
开发者ID:AndrewLevin,项目名称:WMCore,代码行数:11,代码来源:Harvest_t.py

示例4: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        Tear down the databases
        """
        self.testInit.clearDatabase()
        self.testInit.tearDownCouch()
        self.testInit.delWorkDir()
        EmulatorSetup.deleteConfig(self.configFile)
开发者ID:amaltaro,项目名称:WMCore,代码行数:12,代码来源:JobUpdater_t.py

示例5: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        tearDown function for unittest
        """
        self.testInit.clearDatabase()
        self.testInit.delWorkDir()
        EmulatorSetup.deleteConfig(self.configFile)

        return
开发者ID:AndrewLevin,项目名称:WMCore,代码行数:13,代码来源:DBSUpload_t.py

示例6: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        Database deletion
        """
        self.testInit.clearDatabase(modules=["WMCore.WMBS"])
        self.testInit.tearDownCouch()
        self.testInit.delWorkDir()
        EmulatorSetup.deleteConfig(self.configFile)
        super(JobArchiverTest, self).tearDown()

        return
开发者ID:amaltaro,项目名称:WMCore,代码行数:13,代码来源:JobArchiver_t.py

示例7: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        Tear everything down.
        """
        self.testInit.clearDatabase()
        self.testInit.delWorkDir()
        self.testInit.tearDownCouch()
        EmulatorSetup.deleteConfig(self.configFile)
        return
开发者ID:AndresTanasijczuk,项目名称:WMCore,代码行数:13,代码来源:JobSubmitterCaching_t.py

示例8: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        Database deletion
        """
        EmulatorHelper.resetEmulators()
        self.testInit.clearDatabase(modules = ["WMCore.WMBS"])
        self.testInit.tearDownCouch()
        self.testInit.delWorkDir()
        EmulatorSetup.deleteConfig(self.configFile)

        return
开发者ID:AndresTanasijczuk,项目名称:WMCore,代码行数:13,代码来源:JobArchiver_t.py

示例9: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        Standard tearDown
        """
        myThread = threading.currentThread()
        self.testInit.clearDatabase()
        self.testInit.delWorkDir()
        self.testInit.tearDownCouch()
        EmulatorSetup.deleteConfig(self.configFile)
        myThread.logdbClient = None
        return
开发者ID:amaltaro,项目名称:WMCore,代码行数:15,代码来源:JobSubmitter_t.py

示例10: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        Clear out the database.
        """
        self.testInit.clearDatabase()
        self.testInit.tearDownCouch()
        self.testInit.delWorkDir()
        EmulatorSetup.deleteConfig(self.configFile)
        super(WMBSHelperTest, self).tearDown()

        return
开发者ID:vkuznet,项目名称:WMCore,代码行数:15,代码来源:WMBSHelper_t.py

示例11: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        Tear down everything and go home.
        """

        self.testInit.clearDatabase()

        self.testInit.delWorkDir()
        
        EmulatorSetup.deleteConfig(self.configFile)

        return
开发者ID:BrunoCoimbra,项目名称:WMCore,代码行数:16,代码来源:WMAgent_t.py

示例12: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def tearDown(self):
        """
        _tearDown_

        Drop all the WMBS tables.
        """

        self.testInit.clearDatabase(modules=['WMCore.WMBS', 'WMCore.ResourceControl', 'WMCore.Agent.Database'])

        self.testInit.delWorkDir()

        self._teardown = True

        self.testInit.tearDownCouch()
        EmulatorSetup.deleteConfig(self.configFile)

        return
开发者ID:alexanderrichards,项目名称:WMCore,代码行数:19,代码来源:JobCreator_t.py

示例13: testKillWorkflow

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
    def testKillWorkflow(self):
        """
        _testKillWorkflow_

        Verify that workflow killing works correctly.
        """
        configFile = EmulatorSetup.setupWMAgentConfig()

        config = loadConfigurationFile(configFile)

        baAPI = BossAirAPI(config = config)

        # Create nine jobs
        self.setupForKillTest(baAPI = baAPI)
        self.assertEqual(len(baAPI._listRunJobs()), 9)
        killWorkflow("Main", config, config)

        self.verifyFileKillStatus()
        self.verifyJobKillStatus()
        self.assertEqual(len(baAPI._listRunJobs()), 8)

        EmulatorSetup.deleteConfig(configFile)
        return
开发者ID:zhiwenuil,项目名称:WMCore,代码行数:25,代码来源:WMBSHelper_t.py

示例14: tearDown

# 需要导入模块: from WMQuality.Emulators import EmulatorSetup [as 别名]
# 或者: from WMQuality.Emulators.EmulatorSetup import deleteConfig [as 别名]
 def tearDown(self):
     """tearDown"""
     WorkQueueTestCase.tearDown(self)
     #Delete WMBSAgent config file
     EmulatorSetup.deleteConfig(self.configFile)
     EmulatorHelper.resetEmulators()
开发者ID:zhiwenuil,项目名称:WMCore,代码行数:8,代码来源:WorkQueue_t.py


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