Commit 43e7bffe authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

no need to use setUpOnce for validateRules() because it is not so slow and...

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
parent c0d9b482
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment