[Erp5-report] r36960 kazuhiko - /erp5/trunk/products/ERP5/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 7 20:37:25 CEST 2010
Author: kazuhiko
Date: Wed Jul 7 20:37:23 2010
New Revision: 36960
URL: http://svn.erp5.org?rev=36960&view=rev
Log:
now these test should pass.
Modified:
erp5/trunk/products/ERP5/tests/testERP5Simulation.py
erp5/trunk/products/ERP5/tests/testPackingList.py
Modified: erp5/trunk/products/ERP5/tests/testERP5Simulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Simulation.py?rev=36960&r1=36959&r2=36960&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] Wed Jul 7 20:37:23 2010
@@ -525,14 +525,9 @@ class TestERP5SimulationPackingList(Test
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',
Modified: erp5/trunk/products/ERP5/tests/testPackingList.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPackingList.py?rev=36960&r1=36959&r2=36960&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPackingList.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testPackingList.py [utf8] Wed Jul 7 20:37:23 2010
@@ -431,6 +431,9 @@ class TestPackingListMixin(TestOrderMixi
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)
More information about the Erp5-report
mailing list