Commit 08b850fc authored by Łukasz Nowak's avatar Łukasz Nowak

Be always login as super user.

Thanks to this running tests outside of Zope has similar conditions: Manager
is used.
parent b032de8d
...@@ -50,6 +50,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin): ...@@ -50,6 +50,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin):
return return
def afterSetUp(self): def afterSetUp(self):
self.login()
self.createAlarmStep() self.createAlarmStep()
if self.isLiveTest(): if self.isLiveTest():
self.setUpPersistentDummyMailHost() self.setUpPersistentDummyMailHost()
...@@ -87,14 +88,11 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin): ...@@ -87,14 +88,11 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin):
self.clearCache() self.clearCache()
self.login()
# Invoke Post-configurator script, this invokes all # Invoke Post-configurator script, this invokes all
# alarms related to configuration. # alarms related to configuration.
self.portal.BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList() self.portal.BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.logout()
self.loginDefaultUser()
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment