本文整理汇总了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
示例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
示例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
示例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)
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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()