Commit 3f32b4af authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

skip builder alarm in legacy simulation tests.

parent 5874e35b
...@@ -1222,7 +1222,7 @@ class TestOrderMixin(SubcontentReindexingWrapper): ...@@ -1222,7 +1222,7 @@ class TestOrderMixin(SubcontentReindexingWrapper):
# business templates. # business templates.
alarm = getattr(self.portal.portal_alarms, 'packing_list_builder_alarm', None) alarm = getattr(self.portal.portal_alarms, 'packing_list_builder_alarm', None)
if alarm is not None: if alarm is not None:
self.portal.portal_alarms.packing_list_builder_alarm.activeSense() alarm.activeSense()
class TestOrder(TestOrderMixin, ERP5TypeTestCase): class TestOrder(TestOrderMixin, ERP5TypeTestCase):
""" """
......
...@@ -480,11 +480,19 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -480,11 +480,19 @@ class TestTradeModelLine(TestTradeModelLineMixin):
def stepPackingListBuilderAlarm(self, sequence=None, def stepPackingListBuilderAlarm(self, sequence=None,
sequence_list=None, **kw): sequence_list=None, **kw):
self.portal.portal_alarms.packing_list_builder_alarm.activeSense() # global builder alarm does not exist in legacy simulation
# business templates.
alarm = getattr(self.portal.portal_alarms, 'packing_list_builder_alarm', None)
if alarm is not None:
alarm.activeSense()
def stepInvoiceBuilderAlarm(self, sequence=None, def stepInvoiceBuilderAlarm(self, sequence=None,
sequence_list=None, **kw): sequence_list=None, **kw):
self.portal.portal_alarms.invoice_builder_alarm.activeSense() # global builder alarm does not exist in legacy simulation
# business templates.
alarm = getattr(self.portal.portal_alarms, 'invoice_builder_alarm', None)
if alarm is not None:
alarm.activeSense()
### ###
## Test cases ## Test cases
......
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