Commit faa66e6a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

skip builder alarm in legacy simulation tests.

parent 81cb82e2
...@@ -1218,6 +1218,10 @@ class TestOrderMixin(SubcontentReindexingWrapper): ...@@ -1218,6 +1218,10 @@ class TestOrderMixin(SubcontentReindexingWrapper):
def stepPackingListBuilderAlarm(self, sequence=None, def stepPackingListBuilderAlarm(self, sequence=None,
sequence_list=None, **kw): sequence_list=None, **kw):
# 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:
self.portal.portal_alarms.packing_list_builder_alarm.activeSense() self.portal.portal_alarms.packing_list_builder_alarm.activeSense()
class TestOrder(TestOrderMixin, ERP5TypeTestCase): class TestOrder(TestOrderMixin, ERP5TypeTestCase):
......
...@@ -1184,6 +1184,12 @@ class TestInvoiceMixin(TestPackingListMixin, ...@@ -1184,6 +1184,12 @@ class TestInvoiceMixin(TestPackingListMixin,
id='income', source='account_module/sale', id='income', source='account_module/sale',
destination='account_module/purchase', quantity=1665) destination='account_module/purchase', quantity=1665)
def stepInvoiceBuilderAlarm(self, sequence=None,
sequence_list=None, **kw):
# global builder alarm does not exist in legacy simulation
# business templates.
pass
class TestInvoice(TestInvoiceMixin): class TestInvoice(TestInvoiceMixin):
"""Test methods for sale and purchase invoice. """Test methods for sale and purchase invoice.
Subclasses must defines portal types to use. Subclasses must defines portal types to use.
......
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