[Erp5-report] r15964 - /erp5/trunk/products/ERP5/tests/testOrder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 30 17:37:35 CEST 2007


Author: romain
Date: Thu Aug 30 17:37:34 2007
New Revision: 15964

URL: http://svn.erp5.org?rev=15964&view=rev
Log:
Do not modify order line with edit but with a setter, in order to be sure it
works with it.

Modified:
    erp5/trunk/products/ERP5/tests/testOrder.py

Modified: erp5/trunk/products/ERP5/tests/testOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testOrder.py?rev=15964&r1=15963&r2=15964&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testOrder.py (original)
+++ erp5/trunk/products/ERP5/tests/testOrder.py Thu Aug 30 17:37:34 2007
@@ -926,7 +926,7 @@
       Modify order line start date
     """
     order_line = sequence.get('order_line')
-    order_line.edit(start_date=self.datetime + 88)
+    order_line._setStartDate(self.datetime + 88)
 
   def stepModifyOrderCellStartDate(self, sequence=None, sequence_list=None, \
       **kw):
@@ -1551,6 +1551,18 @@
                       '
     sequence_list.addSequenceString(sequence_string)
 
+    # Test when workflow state is modified
+    sequence_string = '\
+                      stepCreateOrganisation \
+                      ' + self.variated_order_creation + '\
+                      stepPlanOrder \
+                      stepTic \
+                      stepOrderOrder \
+                      stepTic \
+                      stepCheckOrderSimulation \
+                      '
+    sequence_list.addSequenceString(sequence_string)
+
     sequence_list.play(self)
 
 # XXX
@@ -1808,4 +1820,3 @@
         suite = unittest.TestSuite()
         suite.addTest(unittest.makeSuite(TestOrder))
         return suite
-




More information about the Erp5-report mailing list