From f72c83fd008f865c82462cf5fa57cbf68fd538b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 16 May 2006 13:55:20 +0000 Subject: [PATCH] remove Commit step, check lines have cell content git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7293 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testOrder.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/product/ERP5/tests/testOrder.py b/product/ERP5/tests/testOrder.py index d49e5df139..b7ffd80e9d 100644 --- a/product/ERP5/tests/testOrder.py +++ b/product/ERP5/tests/testOrder.py @@ -73,10 +73,6 @@ class TestOrderMixin: order_workflow_id='order_workflow' size_list = ['Baby','Child/32','Child/34','Man','Woman'] - def stepCommit(self,**kw): - get_transaction().commit() - - def getBusinessTemplateList(self): """ """ @@ -325,6 +321,7 @@ class TestOrderMixin: str(self.splitList(resource_vcl)[0])) order_line_vcl.extend(self.splitList(resource_vcl)[0]) order_line.setVariationCategoryList(order_line_vcl) + self.failUnless(order_line.hasCellContent()) def stepSetOrderLineFullVCL(self,sequence=None, sequence_list=None, **kw): """ @@ -336,6 +333,7 @@ class TestOrderMixin: omit_individual_variation=0)) resource_vcl.sort() order_line.setVariationCategoryList(resource_vcl) + self.failUnless(order_line.hasCellContent()) def stepCheckOrderLineRange(self,sequence=None, sequence_list=None, **kw): """ @@ -1727,7 +1725,6 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ConfirmOrder \ Tic \ Tic \ - Commit \ CheckDeliveryBuilding \ ' sequence_list.addSequenceString(sequence_string) -- 2.30.9