Commit f33c6530 authored by Łukasz Nowak's avatar Łukasz Nowak

Call alarm as superuser.

parent 1ba02459
...@@ -333,7 +333,12 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -333,7 +333,12 @@ class testVifibMixin(ERP5TypeTestCase):
self.logout() self.logout()
def stepTriggerBuild(self, **kw): def stepTriggerBuild(self, **kw):
self.portal.portal_alarms.vifib_trigger_build.activeSense() sm = getSecurityManager()
self.login()
try:
self.portal.portal_alarms.vifib_trigger_build.activeSense()
finally:
setSecurityManager(sm)
def stepCheckSiteConsistency(self, **kw): def stepCheckSiteConsistency(self, **kw):
self.portal.portal_alarms.vifib_check_consistency.activeSense() self.portal.portal_alarms.vifib_check_consistency.activeSense()
......
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