diff --git a/product/CMFCategory/tests/testCMFCategory.py b/product/CMFCategory/tests/testCMFCategory.py index 9e6823e150d7bd9129458192b9970e65c426b45d..62286fb2e5ac123d49884e2713a68f177b9fd007 100644 --- a/product/CMFCategory/tests/testCMFCategory.py +++ b/product/CMFCategory/tests/testCMFCategory.py @@ -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 diff --git a/product/ERP5/tests/testAccounting.py b/product/ERP5/tests/testAccounting.py index fa3b8654e122961ba9ca43548612d38e775e1bd1..969ea46b5e949e57f65a9d870cfb77702f8130a9 100644 --- a/product/ERP5/tests/testAccounting.py +++ b/product/ERP5/tests/testAccounting.py @@ -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() diff --git a/product/ERP5/tests/testAccountingRules.py b/product/ERP5/tests/testAccountingRules.py index 4efe860ddbf1a6d6dfe838e44cf5adaf717c6f0b..cd3e343d5ff4882cac1b387c43555b4909cace47 100644 --- a/product/ERP5/tests/testAccountingRules.py +++ b/product/ERP5/tests/testAccountingRules.py @@ -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 diff --git a/product/ERP5/tests/testICal.py b/product/ERP5/tests/testICal.py index 2cc0307a41a9b9979f9df04a26fad389255038ef..073e2c6552e993338b654492c93b78179c54e51e 100644 --- a/product/ERP5/tests/testICal.py +++ b/product/ERP5/tests/testICal.py @@ -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): diff --git a/product/ERP5/tests/testInventory.py b/product/ERP5/tests/testInventory.py index d4b5b07c655a7d6bddb53bb0d442c25f924600ef..ecc51adb0809629ca144d35681ce5c0cc96f57ca 100644 --- a/product/ERP5/tests/testInventory.py +++ b/product/ERP5/tests/testInventory.py @@ -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): diff --git a/product/ERP5/tests/testPayroll.py b/product/ERP5/tests/testPayroll.py index 3e228bb7cb5ba9fa8e3cae91c151a289d4eec42d..9fb65824dccd85daf7038dfc9b727f1110ed67cc 100644 --- a/product/ERP5/tests/testPayroll.py +++ b/product/ERP5/tests/testPayroll.py @@ -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() diff --git a/product/ERP5/tests/testTask.py b/product/ERP5/tests/testTask.py index 7026273896aa7ef2eda2afb1c340f4d8ac094385..e69840103c330dba447d9925a2a27e34919e4074 100644 --- a/product/ERP5/tests/testTask.py +++ b/product/ERP5/tests/testTask.py @@ -511,6 +511,9 @@ class TestTask(TestTaskMixin, ERP5TypeTestCase): """ run_all_test = 1 + def afterSetUp(self): + self.validateRules() + def getTitle(self): return "Task" diff --git a/product/ERP5/tests/testTaskReportDivergence.py b/product/ERP5/tests/testTaskReportDivergence.py index 4301ab4b57363fc1b4a2f69b7be22be425d81c9a..5d75c605301da29845733aca549e095dca12dc31 100644 --- a/product/ERP5/tests/testTaskReportDivergence.py +++ b/product/ERP5/tests/testTaskReportDivergence.py @@ -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.