Commit 809ca1ed authored by Julien Muchembled's avatar Julien Muchembled

testPackingList: remove annoying \, excessive indentation and useless 'step' prefix

In particular, this makes easier to comment out an arbitrary step in a sequence.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38813 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bcac028e
...@@ -45,98 +45,99 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -45,98 +45,99 @@ class TestPackingListMixin(TestOrderMixin):
container_portal_type = 'Container' container_portal_type = 'Container'
container_line_portal_type = 'Container Line' container_line_portal_type = 'Container Line'
container_cell_portal_type = 'Container Cell' container_cell_portal_type = 'Container Cell'
default_order_sequence = '\ default_order_sequence = """
stepCreateOrganisation1 \ CreateOrganisation1
stepCreateOrganisation2 \ CreateOrganisation2
stepCreateOrganisation3 \ CreateOrganisation3
stepCreateProject1 \ CreateProject1
stepCreateProject2 \ CreateProject2
stepCreateOrder \ CreateOrder
stepCreateCurrency \ CreateCurrency
stepSetOrderPriceCurrency \ SetOrderPriceCurrency
stepSetOrderProfile ' SetOrderProfile
"""
default_sequence = default_order_sequence + '\ default_sequence = default_order_sequence + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepTic \ Tic
stepCreateOrderLine \ CreateOrderLine
stepSetOrderLineResource \ SetOrderLineResource
stepSetOrderLineDefaultValues \ SetOrderLineDefaultValues
stepOrderOrder \ OrderOrder
stepTic \ Tic
stepConfirmOrder \ ConfirmOrder
stepTic \ Tic
stepCheckOrderSimulation \ CheckOrderSimulation
stepCheckDeliveryBuilding \ CheckDeliveryBuilding
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckOrderPackingList ' CheckOrderPackingList
"""
confirmed_order_without_packing_list = default_order_sequence + '\ confirmed_order_without_packing_list = default_order_sequence + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepTic \ Tic
stepCreateOrderLine \ CreateOrderLine
stepSetOrderLineResource \ SetOrderLineResource
stepSetOrderLineDefaultValues \ SetOrderLineDefaultValues
stepOrderOrder \ OrderOrder
stepTic \ Tic
stepConfirmOrder \ ConfirmOrder
stepTic ' Tic
"""
default_sequence_with_duplicated_lines = default_order_sequence + '\ default_sequence_with_duplicated_lines = default_order_sequence + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepTic \ Tic
stepCreateOrderLine \ CreateOrderLine
stepSetOrderLineResource \ SetOrderLineResource
stepSetOrderLineDefaultValues \ SetOrderLineDefaultValues
stepTic \ Tic
stepCreateOrderLine \ CreateOrderLine
stepSetOrderLineResource \ SetOrderLineResource
stepSetOrderLineDefaultValues \ SetOrderLineDefaultValues
stepOrderOrder \ OrderOrder
stepTic \ Tic
stepConfirmOrder \ ConfirmOrder
stepTic \ Tic
stepCheckOrderSimulation \ CheckOrderSimulation
stepCheckDeliveryBuilding \ CheckDeliveryBuilding
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckOrderPackingList ' CheckOrderPackingList
"""
default_sequence_with_two_lines = default_order_sequence + '\ default_sequence_with_two_lines = default_order_sequence + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepTic \ Tic
stepCreateOrderLine \ CreateOrderLine
stepSetOrderLineResource \ SetOrderLineResource
stepSetOrderLineDefaultValues \ SetOrderLineDefaultValues
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepTic \ Tic
stepCreateOrderLine \ CreateOrderLine
stepSetOrderLineResource \ SetOrderLineResource
stepSetOrderLineDefaultValues \ SetOrderLineDefaultValues
stepOrderOrder \ OrderOrder
stepTic \ Tic
stepConfirmOrder \ ConfirmOrder
stepTic \ Tic
stepCheckOrderSimulation \ CheckOrderSimulation
stepCheckDeliveryBuilding \ CheckDeliveryBuilding
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckOrderPackingList' CheckOrderPackingList
"""
variated_default_sequence = default_order_sequence + '\ variated_default_sequence = default_order_sequence + """
stepCreateVariatedResource \ CreateVariatedResource
stepTic \ Tic
stepCreateOrderLine \ CreateOrderLine
stepSetOrderLineResource \ SetOrderLineResource
stepSetOrderLineDefaultValues \ SetOrderLineDefaultValues
stepSetOrderLineFullVCL \ SetOrderLineFullVCL
stepCompleteOrderLineMatrix \ CompleteOrderLineMatrix
stepOrderOrder \ OrderOrder
stepTic \ Tic
stepConfirmOrder \ ConfirmOrder
stepTic \ Tic
stepCheckOrderSimulation \ CheckOrderSimulation
stepCheckDeliveryBuilding \ CheckDeliveryBuilding
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckOrderPackingList' CheckOrderPackingList
"""
def getTitle(self): def getTitle(self):
return "Packing List" return "Packing List"
...@@ -164,21 +165,21 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -164,21 +165,21 @@ class TestPackingListMixin(TestOrderMixin):
self.assertEquals(packing_list.getCausalityValue(), order) self.assertEquals(packing_list.getCausalityValue(), order)
self.assertEquals(packing_list.getSource(), order.getSource()) self.assertEquals(packing_list.getSource(), order.getSource())
self.assertEquals(packing_list.getDestination(), order.getDestination()) self.assertEquals(packing_list.getDestination(), order.getDestination())
self.assertEquals(packing_list.getDestinationSection(), \ self.assertEquals(packing_list.getDestinationSection(),
order.getDestinationSection()) order.getDestinationSection())
self.assertEquals(packing_list.getSourceSection(), \ self.assertEquals(packing_list.getSourceSection(),
order.getSourceSection()) order.getSourceSection())
self.assertEquals(packing_list.getSourceDecision(), \ self.assertEquals(packing_list.getSourceDecision(),
order.getSourceDecision()) order.getSourceDecision())
self.assertEquals(packing_list.getDestinationAdministration(), \ self.assertEquals(packing_list.getDestinationAdministration(),
order.getDestinationAdministration()) order.getDestinationAdministration())
self.assertEquals(packing_list.getSourceAdministration(), \ self.assertEquals(packing_list.getSourceAdministration(),
order.getSourceAdministration()) order.getSourceAdministration())
self.assertEquals(packing_list.getPriceCurrency(), \ self.assertEquals(packing_list.getPriceCurrency(),
order.getPriceCurrency()) order.getPriceCurrency())
self.assertEquals(packing_list.getDestinationProject(), \ self.assertEquals(packing_list.getDestinationProject(),
order.getDestinationProject()) order.getDestinationProject())
self.assertEquals(packing_list.getSourceProject(), \ self.assertEquals(packing_list.getSourceProject(),
order.getSourceProject()) order.getSourceProject())
def stepCheckPackingListIsDivergent(self, sequence=None, sequence_list=None, def stepCheckPackingListIsDivergent(self, sequence=None, sequence_list=None,
...@@ -296,7 +297,7 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -296,7 +297,7 @@ class TestPackingListMixin(TestOrderMixin):
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
kw = {'listbox':[ kw = {'listbox':[
{'listbox_key':line.getRelativeUrl(), {'listbox_key':line.getRelativeUrl(),
'choice':'SplitAndDefer'} for line in packing_list.getMovementList() \ 'choice':'SplitAndDefer'} for line in packing_list.getMovementList()
if line.isDivergent()]} if line.isDivergent()]}
self.portal.portal_workflow.doActionFor( self.portal.portal_workflow.doActionFor(
packing_list, packing_list,
...@@ -312,7 +313,7 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -312,7 +313,7 @@ class TestPackingListMixin(TestOrderMixin):
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
kw = {'listbox':[ kw = {'listbox':[
{'listbox_key':line.getRelativeUrl(), {'listbox_key':line.getRelativeUrl(),
'choice':'ignore'} for line in packing_list.getMovementList() \ 'choice':'ignore'} for line in packing_list.getMovementList()
if line.isDivergent()]} if line.isDivergent()]}
self.portal.portal_workflow.doActionFor( self.portal.portal_workflow.doActionFor(
packing_list, packing_list,
...@@ -470,7 +471,7 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -470,7 +471,7 @@ class TestPackingListMixin(TestOrderMixin):
self.assertEquals(len(simulation_movement_list),1) self.assertEquals(len(simulation_movement_list),1)
for simulation_movement in simulation_movement_list: for simulation_movement in simulation_movement_list:
simulation_movement = simulation_movement.objectValues()[0].objectValues()[0] simulation_movement = simulation_movement.objectValues()[0].objectValues()[0]
self.assertEquals(simulation_movement.getQuantity() + \ self.assertEquals(simulation_movement.getQuantity() +
simulation_movement.getDeliveryError(), simulation_movement.getDeliveryError(),
self.default_quantity) self.default_quantity)
...@@ -483,7 +484,7 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -483,7 +484,7 @@ class TestPackingListMixin(TestOrderMixin):
self.assertEquals(len(simulation_movement_list),2) self.assertEquals(len(simulation_movement_list),2)
for simulation_movement in simulation_movement_list: for simulation_movement in simulation_movement_list:
simulation_movement = simulation_movement.objectValues()[0].objectValues()[0] simulation_movement = simulation_movement.objectValues()[0].objectValues()[0]
self.assertEquals(simulation_movement.getQuantity() + \ self.assertEquals(simulation_movement.getQuantity() +
simulation_movement.getDeliveryError(), simulation_movement.getDeliveryError(),
self.default_quantity) self.default_quantity)
...@@ -719,7 +720,7 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -719,7 +720,7 @@ class TestPackingListMixin(TestOrderMixin):
self.assertEquals(packing_list_line.getQuantity(), self.default_quantity) self.assertEquals(packing_list_line.getQuantity(), self.default_quantity)
self.assertNotEquals(packing_list_line.getResourceValue(), new_resource) self.assertNotEquals(packing_list_line.getResourceValue(), new_resource)
simulation_movement_list = packing_list_line.getDeliveryRelatedValueList() simulation_movement_list = packing_list_line.getDeliveryRelatedValueList()
order_line_list = [x.getParentValue().getParentValue().getDelivery() \ order_line_list = [x.getParentValue().getParentValue().getDelivery()
for x in simulation_movement_list] for x in simulation_movement_list]
self.assertEquals(sorted(packing_list_line.getCausalityList()), self.assertEquals(sorted(packing_list_line.getCausalityList()),
sorted(order_line_list)) sorted(order_line_list))
...@@ -727,7 +728,7 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -727,7 +728,7 @@ class TestPackingListMixin(TestOrderMixin):
self.assertEquals(new_packing_list_line.getQuantity(), self.default_quantity) self.assertEquals(new_packing_list_line.getQuantity(), self.default_quantity)
self.assertEquals(new_packing_list_line.getResourceValue(), new_resource) self.assertEquals(new_packing_list_line.getResourceValue(), new_resource)
simulation_movement_list = new_packing_list_line.getDeliveryRelatedValueList() simulation_movement_list = new_packing_list_line.getDeliveryRelatedValueList()
order_line_list = [x.getParentValue().getParentValue().getDelivery() \ order_line_list = [x.getParentValue().getParentValue().getDelivery()
for x in simulation_movement_list] for x in simulation_movement_list]
self.assertEquals(sorted(new_packing_list_line.getCausalityList()), self.assertEquals(sorted(new_packing_list_line.getCausalityList()),
sorted(order_line_list)) sorted(order_line_list))
...@@ -738,8 +739,8 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -738,8 +739,8 @@ class TestPackingListMixin(TestOrderMixin):
""" """
order_line = sequence.get('order_line') order_line = sequence.get('order_line')
packing_list_line = order_line.getCausalityRelatedValue() packing_list_line = order_line.getCausalityRelatedValue()
old_packing_list_line = [x for x in \ old_packing_list_line = [x for x in
sequence.get('packing_list').objectValues() \ sequence.get('packing_list').objectValues()
if x != packing_list_line][0] if x != packing_list_line][0]
resource = sequence.get('resource') resource = sequence.get('resource')
self.assertEquals(old_packing_list_line.getQuantity(), 0) self.assertEquals(old_packing_list_line.getQuantity(), 0)
...@@ -747,7 +748,7 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -747,7 +748,7 @@ class TestPackingListMixin(TestOrderMixin):
self.assertEquals(packing_list_line.getQuantity(), self.default_quantity * 2) self.assertEquals(packing_list_line.getQuantity(), self.default_quantity * 2)
self.assertEquals(packing_list_line.getResourceValue(), resource) self.assertEquals(packing_list_line.getResourceValue(), resource)
simulation_movement_list = packing_list_line.getDeliveryRelatedValueList() simulation_movement_list = packing_list_line.getDeliveryRelatedValueList()
order_line_list = [x.getParentValue().getParentValue().getDelivery() \ order_line_list = [x.getParentValue().getParentValue().getDelivery()
for x in simulation_movement_list] for x in simulation_movement_list]
self.assertEquals(sorted(packing_list_line.getCausalityList()), self.assertEquals(sorted(packing_list_line.getCausalityList()),
sorted(order_line_list)) sorted(order_line_list))
...@@ -782,10 +783,10 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -782,10 +783,10 @@ class TestPackingListMixin(TestOrderMixin):
""" """
applied_rule = sequence.get('applied_rule') applied_rule = sequence.get('applied_rule')
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
packing_list_line = [x for x in packing_list.getMovementList() \ packing_list_line = [x for x in packing_list.getMovementList()
if x.getQuantity()][0] if x.getQuantity()][0]
new_packing_list = self.portal.sale_packing_list_module[str(int(packing_list.getId())-1)] new_packing_list = self.portal.sale_packing_list_module[str(int(packing_list.getId())-1)]
new_packing_list_line = [x for x in new_packing_list.getMovementList() \ new_packing_list_line = [x for x in new_packing_list.getMovementList()
if x.getQuantity()][0] if x.getQuantity()][0]
self.assertEquals(packing_list_line.getQuantity(),self.default_quantity) self.assertEquals(packing_list_line.getQuantity(),self.default_quantity)
self.assertEquals(packing_list.getStartDate(),self.datetime+10) self.assertEquals(packing_list.getStartDate(),self.datetime+10)
...@@ -1015,16 +1016,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1015,16 +1016,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepDecreasePackingListLineQuantity \ DecreasePackingListLineQuantity
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepSplitAndDeferPackingList \ SplitAndDeferPackingList
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListSplitted \ CheckPackingListSplitted
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1034,17 +1035,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1034,17 +1035,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepChangePackingListDestination \ ChangePackingListDestination
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepUnifyDestinationWithDecision \ UnifyDestinationWithDecision
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckSimulationDestinationUpdated \ CheckSimulationDestinationUpdated
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1054,17 +1055,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1054,17 +1055,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepChangePackingListStartDate \ ChangePackingListStartDate
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepUnifyStartDateWithDecision \ UnifyStartDateWithDecision
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckSimulationStartDateUpdated \ CheckSimulationStartDateUpdated
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1074,13 +1075,13 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1074,13 +1075,13 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepCheckSimulationConnected \ CheckSimulationConnected
stepDeletePackingListLine \ DeletePackingListLine
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepTic \ Tic
stepCheckSimulationDisconnected \ CheckSimulationDisconnected
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1090,16 +1091,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1090,16 +1091,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepModifySimulationLineQuantity \ ModifySimulationLineQuantity
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAdoptPrevisionQuantity \ AdoptPrevisionQuantity
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListLineWithNewQuantityPrevision \ CheckPackingListLineWithNewQuantityPrevision
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1109,16 +1110,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1109,16 +1110,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepModifySimulationLineQuantity \ ModifySimulationLineQuantity
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAcceptDecisionQuantity \ AcceptDecisionQuantity
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckSimulationQuantityUpdated \ CheckSimulationQuantityUpdated
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1128,16 +1129,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1128,16 +1129,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence_with_duplicated_lines + '\ sequence_string = self.default_sequence_with_duplicated_lines + """
stepModifySimulationLineQuantityForMergedLine \ ModifySimulationLineQuantityForMergedLine
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAdoptPrevisionQuantity \ AdoptPrevisionQuantity
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListLineWithNewQuantityPrevisionForMergedLine \ CheckPackingListLineWithNewQuantityPrevisionForMergedLine
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1147,16 +1148,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1147,16 +1148,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence_with_duplicated_lines + '\ sequence_string = self.default_sequence_with_duplicated_lines + """
stepModifySimulationLineQuantityForMergedLine \ ModifySimulationLineQuantityForMergedLine
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAcceptDecisionQuantity \ AcceptDecisionQuantity
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckSimulationQuantityUpdatedForMergedLine \ CheckSimulationQuantityUpdatedForMergedLine
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1166,17 +1167,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1166,17 +1167,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence_with_duplicated_lines + '\ sequence_string = self.default_sequence_with_duplicated_lines + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepModifyOneSimulationLineResource \ ModifyOneSimulationLineResource
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAdoptPrevisionResource \ AdoptPrevisionResource
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListLineWithDifferentResource \ CheckPackingListLineWithDifferentResource
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1186,16 +1187,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1186,16 +1187,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence_with_two_lines + '\ sequence_string = self.default_sequence_with_two_lines + """
stepModifySimulationLineResource \ ModifySimulationLineResource
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAdoptPrevisionResource \ AdoptPrevisionResource
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListLineWithSameResource \ CheckPackingListLineWithSameResource
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1205,25 +1206,25 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1205,25 +1206,25 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence_with_duplicated_lines + '\ sequence_string = self.default_sequence_with_duplicated_lines + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepModifySimulationLineQuantityForMergedLine \ ModifySimulationLineQuantityForMergedLine
stepModifyOneSimulationLineResource \ ModifyOneSimulationLineResource
stepModifySimulationLineStartDate \ ModifySimulationLineStartDate
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAcceptDecisionQuantity \ AcceptDecisionQuantity
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAcceptDecisionResource \ AcceptDecisionResource
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepUnifyStartDateWithDecision \ UnifyStartDateWithDecision
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckSimulationQuantityUpdatedForMergedLine \ CheckSimulationQuantityUpdatedForMergedLine
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1233,15 +1234,15 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1233,15 +1234,15 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepModifySimulationLineStartDate \ ModifySimulationLineStartDate
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepUnifyStartDateWithPrevision \ UnifyStartDateWithPrevision
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckNewPackingListAfterStartDateAdopt \ CheckNewPackingListAfterStartDateAdopt
' """
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
...@@ -1252,17 +1253,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1252,17 +1253,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence_with_two_lines + '\ sequence_string = self.default_sequence_with_two_lines + """
stepModifySimulationLineStartDate \ ModifySimulationLineStartDate
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepCheckPackingListIsDivergent \ CheckPackingListIsDivergent
stepUnifyStartDateWithPrevision \ UnifyStartDateWithPrevision
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckNewPackingListAfterStartDateAdopt \ CheckNewPackingListAfterStartDateAdopt
' """
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
...@@ -1273,17 +1274,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1273,17 +1274,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence_with_two_lines + '\ sequence_string = self.default_sequence_with_two_lines + """
stepModifyOneSimulationLineStartDate \ ModifyOneSimulationLineStartDate
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepCheckPackingListIsDivergent \ CheckPackingListIsDivergent
stepUnifyStartDateWithPrevision \ UnifyStartDateWithPrevision
stepTic \ Tic
stepCheckPackingListIsNotDivergent \ CheckPackingListIsNotDivergent
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckNewPackingListAfterStartDateAdopt \ CheckNewPackingListAfterStartDateAdopt
' """
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
...@@ -1294,16 +1295,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1294,16 +1295,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepAddPackingListContainer \ AddPackingListContainer
stepAddPackingListContainerLine \ AddPackingListContainerLine
stepSetContainerLineSmallQuantity \ SetContainerLineSmallQuantity
stepCheckContainerLineSmallQuantity \ CheckContainerLineSmallQuantity
stepCheckPackingListIsNotPacked \ CheckPackingListIsNotPacked
stepSetContainerFullQuantity \ SetContainerFullQuantity
stepTic \ Tic
stepCheckPackingListIsPacked \ CheckPackingListIsPacked
' """
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
...@@ -1314,22 +1315,22 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1314,22 +1315,22 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a order with cells # Test with a order with cells
sequence_string = self.variated_default_sequence + '\ sequence_string = self.variated_default_sequence + """
stepAddPackingListContainer \ AddPackingListContainer
stepAddPackingListContainerLine \ AddPackingListContainerLine
stepSetContainerLineSmallQuantity \ SetContainerLineSmallQuantity
stepCheckContainerLineSmallQuantity \ CheckContainerLineSmallQuantity
stepCheckPackingListIsNotPacked \ CheckPackingListIsNotPacked
stepSetContainerFullQuantity \ SetContainerFullQuantity
stepTic \ Tic
stepCheckPackingListIsPacked \ CheckPackingListIsPacked
stepModifySimulationLineStartDate \ ModifySimulationLineStartDate
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepCheckPackingListIsDivergent \ CheckPackingListIsDivergent
stepUnifyStartDateWithPrevision \ UnifyStartDateWithPrevision
stepTic \ Tic
' """
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
...@@ -1350,17 +1351,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1350,17 +1351,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepIncreasePackingListLineQuantity \ IncreasePackingListLineQuantity
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepSplitAndDeferPackingList \ SplitAndDeferPackingList
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepCheckPackingListIsDivergent \ CheckPackingListIsDivergent
stepCheckPackingListNotSolved \ CheckPackingListNotSolved
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1376,27 +1377,27 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1376,27 +1377,27 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepDecreasePackingListLineQuantity \ DecreasePackingListLineQuantity
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepSplitAndDeferPackingList \ SplitAndDeferPackingList
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListSplitted \ CheckPackingListSplitted
stepDecreasePackingListLineQuantity \ DecreasePackingListLineQuantity
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepSplitAndDeferPackingList \ SplitAndDeferPackingList
stepTic \ Tic
stepCheckNewPackingListIsDivergent \ CheckNewPackingListIsDivergent
stepNewPackingListAdoptPrevisionQuantity \ NewPackingListAdoptPrevisionQuantity
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckPackingListSplittedTwoTimes \ CheckPackingListSplittedTwoTimes
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1410,17 +1411,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1410,17 +1411,17 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepIncreasePackingListLineQuantity \ IncreasePackingListLineQuantity
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepSplitAndDeferDoNothingPackingList \ SplitAndDeferDoNothingPackingList
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepCheckPackingListIsDivergent \ CheckPackingListIsDivergent
stepCheckPackingListNotSolved \ CheckPackingListNotSolved
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1434,13 +1435,13 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1434,13 +1435,13 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepChangePackingListLineResource \ ChangePackingListLineResource
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsDivergent \ CheckPackingListIsDivergent
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1602,26 +1603,26 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1602,26 +1603,26 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_order_sequence + """ sequence_string = self.default_order_sequence + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepCreateSourceAccount CreateSourceAccount
stepCreateDestinationAccount CreateDestinationAccount
stepTic Tic
stepCreateOrderLine CreateOrderLine
stepSetOrderLineResource SetOrderLineResource
stepSetOrderLineDefaultValues SetOrderLineDefaultValues
stepSetOrderLineSourceAccount SetOrderLineSourceAccount
stepSetOrderLineDestinationAccount SetOrderLineDestinationAccount
stepOrderOrder OrderOrder
stepTic Tic
stepConfirmOrder ConfirmOrder
stepTic Tic
stepCheckOrderSimulation CheckOrderSimulation
stepCheckDeliveryBuilding CheckDeliveryBuilding
stepCheckPackingListIsSolved CheckPackingListIsSolved
stepCheckOrderPackingList CheckOrderPackingList
stepCheckPackingListLineSourceAccount CheckPackingListLineSourceAccount
stepCheckPackingListLineDestinationAccount CheckPackingListLineDestinationAccount
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1636,19 +1637,19 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1636,19 +1637,19 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepDecreasePackingListLineQuantity \ DecreasePackingListLineQuantity
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAcceptDecisionQuantity \ AcceptDecisionQuantity
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckSimulationMovementHasRecordedQuantity \ CheckSimulationMovementHasRecordedQuantity
stepDecreaseOrderLineQuantity \ DecreaseOrderLineQuantity
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckSimulationMovementHasNoRecordedQuantity \ CheckSimulationMovementHasNoRecordedQuantity
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1663,20 +1664,20 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1663,20 +1664,20 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = self.default_sequence + '\ sequence_string = self.default_sequence + """
stepCreateNotVariatedResource \ CreateNotVariatedResource
stepChangePackingListLineResource \ ChangePackingListLineResource
stepTic \ Tic
stepCheckPackingListIsDiverged \ CheckPackingListIsDiverged
stepAcceptDecisionResource \ AcceptDecisionResource
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckSimulationMovementHasRecordedResource \ CheckSimulationMovementHasRecordedResource
stepChangeOrderLineResource \ ChangeOrderLineResource
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
stepCheckSimulationMovementHasNoRecordedResource \ CheckSimulationMovementHasNoRecordedResource
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1736,13 +1737,13 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1736,13 +1737,13 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
transaction.commit() transaction.commit()
self.tic() self.tic()
# check it's possible to sort by reference # check it's possible to sort by reference
reference_result = packing_list.getMovementList(sort_on=\ reference_result = packing_list.getMovementList(sort_on=
[('reference', 'descending')]) [('reference', 'descending')])
self.assertEquals(reference_result, [line_aaa, line_bbb, line_ccc, self.assertEquals(reference_result, [line_aaa, line_bbb, line_ccc,
line_ddd]) line_ddd])
# check it's possible to sort by int_index # check it's possible to sort by int_index
int_index_result = packing_list.getMovementList(sort_on=\ int_index_result = packing_list.getMovementList(sort_on=
[('int_index', 'ascending')]) [('int_index', 'ascending')])
self.assertEquals(int_index_result, [line_ccc, line_ddd, line_aaa, self.assertEquals(int_index_result, [line_ccc, line_ddd, line_aaa,
line_bbb]) line_bbb])
...@@ -1800,7 +1801,7 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase): ...@@ -1800,7 +1801,7 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase):
solver.setCriterionProperty('portal_type') solver.setCriterionProperty('portal_type')
solver_process_type_info = self.portal.portal_types['Solver Process'] solver_process_type_info = self.portal.portal_types['Solver Process']
solver_process_type_info.setTypeAllowedContentTypeList( solver_process_type_info.setTypeAllowedContentTypeList(
solver_process_type_info.getTypeAllowedContentTypeList() + \ solver_process_type_info.getTypeAllowedContentTypeList() +
[solver_id] [solver_id]
) )
(default_chain, chain_dict) = getChainByType(self.portal) (default_chain, chain_dict) = getChainByType(self.portal)
...@@ -1830,7 +1831,7 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase): ...@@ -1830,7 +1831,7 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase):
sequence_list=None): sequence_list=None):
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
simulation_movement_list = sum( simulation_movement_list = sum(
[x.getDeliveryRelatedValueList() for x in \ [x.getDeliveryRelatedValueList() for x in
packing_list.getMovementList()[:10]], []) packing_list.getMovementList()[:10]], [])
solver_process = self.portal.portal_solver_processes.newContent( solver_process = self.portal.portal_solver_processes.newContent(
portal_type='Solver Process') portal_type='Solver Process')
...@@ -1859,14 +1860,14 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase): ...@@ -1859,14 +1860,14 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase):
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = '\ sequence_string = """
stepSetUpAutomaticQuantityAcceptSolver \ SetUpAutomaticQuantityAcceptSolver
' + self.default_sequence + '\ """ + self.default_sequence + """
stepDecreasePackingListLineQuantity \ DecreasePackingListLineQuantity
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1880,14 +1881,14 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase): ...@@ -1880,14 +1881,14 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase):
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a simply order without cell # Test with a simply order without cell
sequence_string = '\ sequence_string = """
stepSetUpAutomaticQuantityAdoptSolver \ SetUpAutomaticQuantityAdoptSolver
' + self.default_sequence + '\ """ + self.default_sequence + """
stepDecreasePackingListLineQuantity \ DecreasePackingListLineQuantity
stepCheckPackingListIsCalculating \ CheckPackingListIsCalculating
stepTic \ Tic
stepCheckPackingListIsSolved \ CheckPackingListIsSolved
' """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
...@@ -1896,21 +1897,21 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase): ...@@ -1896,21 +1897,21 @@ class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase):
sequence_list = SequenceList() sequence_list = SequenceList()
# Test with a order with cells # Test with a order with cells
sequence_string = '\ sequence_string = """
stepSetUpMovementSplitSolver \ SetUpMovementSplitSolver
' + self.variated_default_sequence + '\ """ + self.variated_default_sequence + """
stepAddPackingListContainer \ AddPackingListContainer
stepAddPackingListContainerLine \ AddPackingListContainerLine
stepSetContainerLineSmallQuantity \ SetContainerLineSmallQuantity
stepCheckContainerLineSmallQuantity \ CheckContainerLineSmallQuantity
stepCheckPackingListIsNotPacked \ CheckPackingListIsNotPacked
stepSetContainerFullQuantity \ SetContainerFullQuantity
stepTic \ Tic
stepCheckPackingListIsPacked \ CheckPackingListIsPacked
stepSplitMovementWithVariatedResources \ SplitMovementWithVariatedResources
stepTic \ Tic
stepCheckSplitMovementWithVariatedResources \ CheckSplitMovementWithVariatedResources
' """
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
......
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