From 100a844a5ee0bcc8470a5172613663f9fb54be40 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 20 Dec 2005 16:27:39 +0000 Subject: [PATCH] define the size_list in a different place git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4812 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testOrder.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testOrder.py b/product/ERP5/tests/testOrder.py index bdea58ac85..a5acf4bba9 100755 --- a/product/ERP5/tests/testOrder.py +++ b/product/ERP5/tests/testOrder.py @@ -71,6 +71,11 @@ class TestOrderMixin: packing_list_cell_portal_type = 'Sale Packing List Cell' delivery_builder_id = 'sale_packing_list_builder' order_workflow_id='order_workflow' + size_list = ['Baby','Child/32','Child/34','Man','Woman'] + + def stepCommit(self,**kw): + get_transaction().commit() + def getBusinessTemplateList(self): """ @@ -161,8 +166,7 @@ class TestOrderMixin: industrial_phase_list=["phase1", "phase2"], product_line = 'apparel' ) - size_list = ['Baby','Child/32','Child/34','Man','Woman'] - resource.setSizeList(size_list) + resource.setSizeList(self.size_list) # Add colour variation colour_variation_count = 3 for i in range(colour_variation_count): @@ -1722,6 +1726,7 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ConfirmOrder \ Tic \ Tic \ + Commit \ CheckDeliveryBuilding \ ' sequence_list.addSequenceString(sequence_string) -- 2.30.9