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