Commit 5172f20b authored by Łukasz Nowak's avatar Łukasz Nowak

Call alarm directly.

Thanks to calling builders on tic and calling this alarm directly, real issues
of incorrecting building are always exposed.
parent 30d65069
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
# #
############################################################################## ##############################################################################
from DateTime import DateTime from DateTime import DateTime
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager, \
getSecurityManager, setSecurityManager
from Products.ERP5Type.Errors import UnsupportedWorkflowMethod from Products.ERP5Type.Errors import UnsupportedWorkflowMethod
from Products.ERP5Type.tests.Sequence import SequenceList from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.tests.backportUnittest import skip from Products.ERP5Type.tests.backportUnittest import skip
...@@ -786,7 +787,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -786,7 +787,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
computer_partition.building() computer_partition.building()
def stepConfirmOrderedSaleOrderActiveSense(self, **kw): def stepConfirmOrderedSaleOrderActiveSense(self, **kw):
self.portal.portal_alarms.confirm_ordered_sale_order.activeSense() sm = getSecurityManager()
self.login()
try:
self.portal.portal_alarms.confirm_ordered_sale_order\
.Alarm_confirmOrderedSaleOrder()
finally:
setSecurityManager(sm)
######################################## ########################################
# Steps -- REMOTE_USER logins # Steps -- REMOTE_USER logins
......
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