Commit 370debc6 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Cédric de Saint Martin

Call alarm as superuser.

parent b267fa69
......@@ -333,7 +333,12 @@ class testVifibMixin(ERP5TypeTestCase):
self.logout()
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):
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