Commit 89b10801 authored by Yusei Tahara's avatar Yusei Tahara

testERP5Simulation: Improve test_02_splitAndDeferAfterAcceptDecision. After...

testERP5Simulation: Improve test_02_splitAndDeferAfterAcceptDecision. After SplitAndDefer, expand the root applied rule and make sure that two SPLs are not diverged.
parent af07ce4e
Pipeline #8853 passed with stage
in 0 seconds
......@@ -282,9 +282,15 @@ class TestERP5Simulation(TestPackingListMixin, SecurityTestCase):
for line in packing_list1.objectValues(
portal_type= self.packing_list_line_portal_type):
self.assertEqual(self.default_quantity-10,line.getQuantity())
self.assertEqual('solved', packing_list1.getCausalityState())
for line in packing_list2.objectValues(
portal_type= self.packing_list_line_portal_type):
self.assertEqual(10+1000,line.getQuantity())
self.assertEqual('solved', packing_list2.getCausalityState())
def stepExpandOrder(self, sequence=None, sequence_list=None, **kw):
order = sequence.get('order')
order.updateSimulation(expand_root=1)
def getOrderedPackingListFromOrder(self, order):
packing_list_list = order.getCausalityRelatedValueList(
......@@ -327,8 +333,10 @@ class TestERP5Simulation(TestPackingListMixin, SecurityTestCase):
stepCheckSolverIsSolving \
stepTic \
stepCheckPackingListSplittedForTest02 \
stepCheckPackingListIsSolved \
stepCheckSolverIsSolved \
stepExpandOrder \
stepTic \
stepCheckPackingListSplittedForTest02 \
'
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