Commit 346e3e98 authored by Jérome Perrin's avatar Jérome Perrin

validate rules


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25186 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38f8315f
...@@ -89,6 +89,7 @@ class TestCMFCategory(ERP5TypeTestCase): ...@@ -89,6 +89,7 @@ class TestCMFCategory(ERP5TypeTestCase):
def afterSetUp(self): def afterSetUp(self):
self.login() self.login()
portal = self.getPortal() portal = self.getPortal()
self.validateRules()
# This test creates Person inside Person and Organisation inside # This test creates Person inside Person and Organisation inside
# Organisation, so we modifiy type informations to allow anything inside # Organisation, so we modifiy type informations to allow anything inside
......
...@@ -188,6 +188,8 @@ class AccountingTestCase(ERP5TypeTestCase): ...@@ -188,6 +188,8 @@ class AccountingTestCase(ERP5TypeTestCase):
pref._aq_dynamic('hack') pref._aq_dynamic('hack')
pref.enable() pref.enable()
self.validateRules()
# and all this available to catalog # and all this available to catalog
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
......
...@@ -126,6 +126,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -126,6 +126,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
def afterSetUp(self) : def afterSetUp(self) :
self.login() self.login()
self.createCategories() self.createCategories()
self.validateRules()
def login(self): def login(self):
uf = self.getPortal().acl_users uf = self.getPortal().acl_users
......
...@@ -66,6 +66,7 @@ class TestICal(ERP5TypeTestCase): ...@@ -66,6 +66,7 @@ class TestICal(ERP5TypeTestCase):
def afterSetUp(self): def afterSetUp(self):
self.portal = self.getPortal() self.portal = self.getPortal()
self.request=self.app.REQUEST self.request=self.app.REQUEST
self.validateRules()
self.makeDataObjects() self.makeDataObjects()
def login(self, quiet=0, run=run_all_test): def login(self, quiet=0, run=run_all_test):
......
...@@ -78,6 +78,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase): ...@@ -78,6 +78,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
self.login() self.login()
self.category_tool = self.getCategoryTool() self.category_tool = self.getCategoryTool()
self.createCategories() self.createCategories()
self.validateRules()
# Patch PackingList.asPacked so that we do not need # Patch PackingList.asPacked so that we do not need
# to manage containers here, this not the job of this test # to manage containers here, this not the job of this test
def isPacked(self): def isPacked(self):
......
...@@ -99,6 +99,7 @@ class TestPayrollMixin(ERP5ReportTestCase): ...@@ -99,6 +99,7 @@ class TestPayrollMixin(ERP5ReportTestCase):
self.person_module = self.portal.person_module self.person_module = self.portal.person_module
self.payroll_service_module = self.portal.payroll_service_module self.payroll_service_module = self.portal.payroll_service_module
self.paysheet_model_module = self.portal.paysheet_model_module self.paysheet_model_module = self.portal.paysheet_model_module
self.validateRules()
self.createCategories() self.createCategories()
self.createCurrencies() self.createCurrencies()
......
...@@ -511,6 +511,9 @@ class TestTask(TestTaskMixin, ERP5TypeTestCase): ...@@ -511,6 +511,9 @@ class TestTask(TestTaskMixin, ERP5TypeTestCase):
""" """
run_all_test = 1 run_all_test = 1
def afterSetUp(self):
self.validateRules()
def getTitle(self): def getTitle(self):
return "Task" return "Task"
......
...@@ -110,6 +110,9 @@ class TestTaskReportDivergence(TestTaskReportDivergenceMixin, ERP5TypeTestCase) ...@@ -110,6 +110,9 @@ class TestTaskReportDivergence(TestTaskReportDivergenceMixin, ERP5TypeTestCase)
run_all_test = 1 run_all_test = 1
quiet = 0 quiet = 0
def afterSetUp(self):
self.validateRules()
def enableLightInstall(self): def enableLightInstall(self):
""" """
You can override this. You can override this.
......
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