Commit e3fbb821 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

now these test should pass.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36960 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8157a2a2
......@@ -525,14 +525,9 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
pass
for failing_method in [
# This test does not work as it is because of the different behaviour of
# Adopt Solver.
'test_05d_SimulationChangeResourceOnOneSimulationMovementForMergedLine',
# Those tests currently fail because they are making assertions on an applied
# rule which with the new simulation structure is not the same as in the
# original test packing list
'test_03_PackingListChangeStartDate',
'test_06_SimulationChangeStartDate',
'test_07_SimulationChangeStartDateWithTwoOrderLine',
'test_07a_SimulationChangeStartDateWithTwoOrderLine',
......
......@@ -431,6 +431,9 @@ class TestPackingListMixin(TestOrderMixin):
applied_rule = sequence.get('applied_rule')
simulation_movement_list = applied_rule.objectValues()
self.assertEquals(len(simulation_movement_list),1)
delivery_applied_rule = simulation_movement_list[0].objectValues()[0]
simulation_movement_list = delivery_applied_rule.objectValues()
self.assertEquals(len(simulation_movement_list),1)
for simulation_movement in simulation_movement_list:
self.assertEquals(simulation_movement.getStartDate(),self.datetime + 15)
......
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