Commit 30030831 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

override stepCheckSimulationQuantityUpdatedForMergedLine to follow aggegation...

override stepCheckSimulationQuantityUpdatedForMergedLine to follow aggegation in expanding to simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31503 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 54f2a76e
...@@ -531,6 +531,18 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): ...@@ -531,6 +531,18 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
simulation_line.edit(quantity=self.default_quantity-2) simulation_line.edit(quantity=self.default_quantity-2)
simulation_line.getOrderValue().edit(quantity=self.default_quantity-2) simulation_line.getOrderValue().edit(quantity=self.default_quantity-2)
def stepCheckSimulationQuantityUpdatedForMergedLine(self,sequence=None, sequence_list=None, **kw):
"""
Test if the quantity of the simulation movement was changed
"""
applied_rule = sequence.get('applied_rule')
simulation_line_list = applied_rule.objectValues()
self.assertEquals(len(simulation_line_list), 1)
for simulation_line in simulation_line_list:
self.assertEquals(simulation_line.getQuantity() + \
simulation_line.getDeliveryError(),
self.default_quantity * 2)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5Simulation)) suite.addTest(unittest.makeSuite(TestERP5Simulation))
......
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