From 43e7bffe9fa2c5bf21d272b0fb5225058e5cd457 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 25 Mar 2010 15:59:10 +0000 Subject: [PATCH] no need to use setUpOnce for validateRules() because it is not so slow and valaidation is done only once in reality. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34119 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testBPMCore.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/product/ERP5/tests/testBPMCore.py b/product/ERP5/tests/testBPMCore.py index 61d6b60466..66e6ce1472 100644 --- a/product/ERP5/tests/testBPMCore.py +++ b/product/ERP5/tests/testBPMCore.py @@ -51,9 +51,6 @@ class TestBPMMixin(ERP5TypeTestCase): normal_resource_use_category_list = ['normal'] invoicing_resource_use_category_list = ['discount', 'tax'] - def setUpOnce(self): - self.validateRules() - def createCategoriesInCategory(self, category, category_id_list): for category_id in category_id_list: if not category.hasObject(category_id): @@ -204,6 +201,7 @@ class TestBPMMixin(ERP5TypeTestCase): itr.validate() def afterSetUp(self): + self.validateRules() self.createCategories() self.createInvoiceTransactionRule() self.stepTic() -- 2.30.9