本文整理汇总了Python中WMCore.Services.EmulatorSwitch.EmulatorHelper.resetEmulators方法的典型用法代码示例。如果您正苦于以下问题:Python EmulatorHelper.resetEmulators方法的具体用法?Python EmulatorHelper.resetEmulators怎么用?Python EmulatorHelper.resetEmulators使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WMCore.Services.EmulatorSwitch.EmulatorHelper
的用法示例。
在下文中一共展示了EmulatorHelper.resetEmulators方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testEmulator
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def testEmulator(self):
EmulatorHelper.setEmulators(True, True, True, True)
self.assertEqual(PhEDEx().wrapped.__module__,
'WMQuality.Emulators.PhEDExClient.PhEDEx')
self.assertEqual(DBSReader(self.globalDBS).wrapped.__module__,
'WMQuality.Emulators.DBSClient.DBSReader')
self.assertEqual(SiteDBJSON().wrapped.__module__,
'WMQuality.Emulators.SiteDBClient.SiteDB')
self.assertEqual(RequestManager().wrapped.__module__,
'WMQuality.Emulators.RequestManagerClient.RequestManager')
self.assertEqual(PhEDEx().__class__.__name__, 'PhEDEx')
self.assertEqual(DBSReader(self.globalDBS).__class__.__name__, 'DBSReader')
self.assertEqual(SiteDBJSON().__class__.__name__, 'SiteDBJSON')
self.assertEqual(RequestManager().__class__.__name__, 'RequestManager')
EmulatorHelper.resetEmulators()
self.assertEqual(PhEDEx().wrapped.__module__,
'WMCore.Services.PhEDEx.PhEDEx')
self.assertEqual(DBSReader(self.globalDBS).wrapped.__module__,
'WMCore.Services.DBS.DBS2Reader')
self.assertEqual(SiteDBJSON().wrapped.__module__,
'WMCore.Services.SiteDB.SiteDB')
self.assertEqual(RequestManager().wrapped.__module__,
'WMCore.Services.RequestManager.RequestManager')
self.assertEqual(PhEDEx().__class__.__name__, 'PhEDEx')
self.assertEqual(DBSReader(self.globalDBS).__class__.__name__, 'DBS2Reader')
self.assertEqual(SiteDBJSON().__class__.__name__, 'SiteDBJSON')
self.assertEqual(RequestManager().__class__.__name__, 'RequestManager')
示例2: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
"""
super(SiteDBTest, self).tearDown()
EmulatorHelper.resetEmulators()
return
示例3: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
Clear out the database.
"""
self.testInit.tearDownCouch()
self.testInit.clearDatabase()
self.testInit.delWorkDir()
EmulatorHelper.resetEmulators()
示例4: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""tearDown"""
WorkQueueTestCase.tearDown(self)
try:
self.specGenerator.removeSpecs()
except:
pass
EmulatorHelper.resetEmulators()
示例5: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Delete the database.
"""
self.testInit.clearDatabase()
EmulatorHelper.resetEmulators()
示例6: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Clear the schema.
"""
EmulatorHelper.resetEmulators()
self.testInit.clearDatabase()
return
示例7: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Clean couchdb and test environment
"""
self.testInit.tearDownCouch()
EmulatorHelper.resetEmulators()
return
示例8: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Drop all the WMBS tables.
"""
self.testInit.tearDownCouch()
EmulatorHelper.resetEmulators()
self.specGenerator.removeSpecs()
示例9: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Delete the database.
"""
self.testInit.clearDatabase()
EmulatorHelper.resetEmulators()
super(PhEDExInjectorSubscriberTest, self).tearDown()
示例10: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Tear down the databases
"""
self.testInit.clearDatabase()
self.testInit.tearDownCouch()
self.testInit.delWorkDir()
EmulatorHelper.resetEmulators()
示例11: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [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
示例12: testGetEmulators
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def testGetEmulators(self):
from WMCore.Services.PhEDEx.PhEDEx import PhEDEx
phedexJSON = PhEDEx(responseType='json')
self.assertTrue( hasattr( phedexJSON, '_testNonExistentInEmulator' ) )
EmulatorHelper.setEmulators(phedex = True, dbs = True,
siteDB = True, requestMgr = False)
phedexJSON2 = PhEDEx(responseType='json')
self.assertFalse( hasattr( phedexJSON2, '_testNonExistentInEmulator' ) )
EmulatorHelper.resetEmulators()
phedexJSON2 = PhEDEx(responseType='json')
self.assertTrue( hasattr( phedexJSON2, '_testNonExistentInEmulator' ) )
示例13: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Clean couchdb and test environment
"""
super(ResubmitBlockTest, self).tearDown()
self.testInit.tearDownCouch()
EmulatorHelper.resetEmulators()
return
示例14: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
_tearDown_
Clear out the database.
"""
self.testInit.tearDownCouch()
self.testInit.clearDatabase()
self.testInit.delWorkDir()
EmulatorHelper.resetEmulators()
super(ReDigiTest, self).tearDown()
return
示例15: tearDown
# 需要导入模块: from WMCore.Services.EmulatorSwitch import EmulatorHelper [as 别名]
# 或者: from WMCore.Services.EmulatorSwitch.EmulatorHelper import resetEmulators [as 别名]
def tearDown(self):
"""
Database deletion
"""
EmulatorHelper.resetEmulators()
self.testInit.clearDatabase(modules = ["WMCore.WMBS"])
self.testInit.tearDownCouch()
self.testInit.delWorkDir()
if self.alertsReceiver:
self.alertsReceiver.shutdown()
return