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