[Erp5-report] r22026 - /erp5/trunk/products/ERP5/tests/testProductionOrder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jun 27 13:25:04 CEST 2008


Author: luke
Date: Fri Jun 27 13:25:03 2008
New Revision: 22026

URL: http://svn.erp5.org?rev=22026&view=rev
Log:
 - move test sequence string to mixin class, it will be used for packing list tests

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

Modified: erp5/trunk/products/ERP5/tests/testProductionOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testProductionOrder.py?rev=22026&r1=22025&r2=22026&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testProductionOrder.py (original)
+++ erp5/trunk/products/ERP5/tests/testProductionOrder.py Fri Jun 27 13:25:03 2008
@@ -830,6 +830,23 @@
            ))
     self.assertEquals(0, len(supply_movement.objectValues()))
 
+  SOURCING_ORDER_SEQUENCE = '\
+                      ClearActivities \
+                      CreateProductionOrganisation1 \
+                      CreateSupplyOrganisation1 \
+                      CreateSourcingSC \
+                      CreateVariatedResource \
+                      CreateComponent1 \
+                      CreateTransformation \
+                      CreateOrganisation \
+                      CreateOrder \
+                      CreateOrderLine \
+                      Tic \
+                      OrderOrder \
+                      Tic \
+                      ConfirmOrder \
+                      Tic \
+                      '
     
 class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
   """
@@ -956,24 +973,7 @@
     if not run: return
     sequence_list = SequenceList()
     # Test when order is 
-    sequence_string = '\
-                      ClearActivities \
-                      CreateProductionOrganisation1 \
-                      CreateSupplyOrganisation1 \
-                      CreateSourcingSC \
-                      CreateVariatedResource \
-                      CreateComponent1 \
-                      CreateTransformation \
-                      CreateOrganisation \
-                      CreateOrder \
-                      CreateOrderLine \
-                      Tic \
-                      OrderOrder \
-                      Tic \
-                      ConfirmOrder \
-                      Tic \
-                      '
-    sequence_list.addSequenceString(sequence_string)
+    sequence_list.addSequenceString(self.SOURCING_ORDER_SEQUENCE)
     sequence_list.play(self)
 
   def test_06_testIndustrialPhase(self, quiet=0, run=run_all_test):




More information about the Erp5-report mailing list