Commit 8324e906 authored by Łukasz Nowak's avatar Łukasz Nowak

Create real mixin to avoid specific test escaping.

parent 8798915c
...@@ -1367,11 +1367,7 @@ class TestSlapOSManageBuildingCalculatingDeliveryAlarm(testSlapOSMixin): ...@@ -1367,11 +1367,7 @@ class TestSlapOSManageBuildingCalculatingDeliveryAlarm(testSlapOSMixin):
def test_Delivery_manageBuildingCalculatingDelivery_diverged(self): def test_Delivery_manageBuildingCalculatingDelivery_diverged(self):
self._test_Delivery_manageBuildingCalculatingDelivery('diverged', True) self._test_Delivery_manageBuildingCalculatingDelivery('diverged', True)
class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(testSlapOSMixin): class TestSlapOSConfirmedDeliveryMixin(testSlapOSMixin):
script = 'Delivery_deliverConfirmedAggregatedSalePackingList'
portal_type = 'Sale Packing List'
alarm = 'slapos_deliver_confirmed_aggregated_sale_packing_list'
def _test(self, simulation_state, causality_state, specialise, positive): def _test(self, simulation_state, causality_state, specialise, positive):
@simulateByTitlewMark(self.script) @simulateByTitlewMark(self.script)
def _real(self, simulation_state, causality_state, specialise, positive): def _real(self, simulation_state, causality_state, specialise, positive):
...@@ -1412,7 +1408,6 @@ class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(testSlapOSMixin): ...@@ -1412,7 +1408,6 @@ class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(testSlapOSMixin):
self._test('confirmed', 'calculating', self._test('confirmed', 'calculating',
'sale_trade_condition_module/slapos_aggregated_trade_condition', False) 'sale_trade_condition_module/slapos_aggregated_trade_condition', False)
destination_state = 'delivered'
@withAbort @withAbort
def _test_script(self, simulation_state, causality_state, specialise, def _test_script(self, simulation_state, causality_state, specialise,
destination_state, consistency_failure=False): destination_state, consistency_failure=False):
...@@ -1460,8 +1455,16 @@ class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(testSlapOSMixin): ...@@ -1460,8 +1455,16 @@ class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(testSlapOSMixin):
'sale_trade_condition_module/slapos_aggregated_trade_condition', 'sale_trade_condition_module/slapos_aggregated_trade_condition',
'confirmed', True) 'confirmed', True)
class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(
TestSlapOSConfirmedDeliveryMixin):
destination_state = 'delivered'
script = 'Delivery_deliverConfirmedAggregatedSalePackingList'
portal_type = 'Sale Packing List'
alarm = 'slapos_deliver_confirmed_aggregated_sale_packing_list'
class TestSlapOSStopConfirmedAggregatedSaleInvoiceTransactionAlarm( class TestSlapOSStopConfirmedAggregatedSaleInvoiceTransactionAlarm(
TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm): TestSlapOSConfirmedDeliveryMixin):
destination_state = 'stopped' destination_state = 'stopped'
script = 'Delivery_stopConfirmedAggregatedSaleInvoiceTransaction' script = 'Delivery_stopConfirmedAggregatedSaleInvoiceTransaction'
portal_type = 'Sale Invoice Transaction' portal_type = 'Sale Invoice Transaction'
......
183 184
\ No newline at end of file \ No newline at end of file
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