Commit 309f4dc6 authored by Łukasz Nowak's avatar Łukasz Nowak

- split out common test string into one, used as initialisation for tests

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22047 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b0cedf9
......@@ -303,9 +303,8 @@ class TestProductionDelivery(TestProductionPackingReportListMixin):
Test for sourcing type of delivery (Production Report and Production Packing Lists).
"""
if not run: return
sequence_list = SequenceList()
# Check states of deliveries, just after order confirmation
sequence_string = self.SOURCING_ORDER_SEQUENCE + '\
delivery_check_sequence_string = self.SOURCING_ORDER_SEQUENCE + '\
CheckSourcingDeliverySimulation \
\
CheckProducedDeliveryPackingListIsConfirmed \
......@@ -321,27 +320,17 @@ class TestProductionDelivery(TestProductionPackingReportListMixin):
CheckConsumedReportIsSolved\
\
'
sequence_list = SequenceList()
# Check states of deliveries, just after order confirmation
sequence_string = delivery_check_sequence_string
sequence_list.addSequenceString(sequence_string)
# Test when packing list are delivered one by one
# Note: I (Luke) know, that below sequence is long
# but I wanted to be sure, that full production
# process is doable.
sequence_string = self.SOURCING_ORDER_SEQUENCE + '\
CheckSourcingDeliverySimulation \
\
CheckProducedDeliveryPackingListIsConfirmed \
CheckProducedDeliveryPackingListIsSolved\
\
CheckSupplyDeliveryPackingListIsConfirmed \
CheckSupplyDeliveryPackingListIsSolved\
\
CheckProducedReportIsConfirmed \
CheckProducedReportIsSolved\
\
CheckConsumedReportIsConfirmed \
CheckConsumedReportIsSolved\
\
sequence_string = delivery_check_sequence_string + '\
SetReadyProducedDeliveryPackingList \
StartProducedDeliveryPackingList \
StopProducedDeliveryPackingList \
......
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