Commit fd833f4d authored by Nicolas Delaby's avatar Nicolas Delaby

validate Rules

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25207 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 753d5a59
...@@ -230,6 +230,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase): ...@@ -230,6 +230,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase):
self.createOrganisationList() self.createOrganisationList()
self.createAccountList() self.createAccountList()
self.createItemList() self.createItemList()
self.validateRuleList()
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
...@@ -421,6 +422,11 @@ class TestImmobilisationMixin(ERP5TypeTestCase): ...@@ -421,6 +422,11 @@ class TestImmobilisationMixin(ERP5TypeTestCase):
item_id = 'item%i' % i item_id = 'item%i' % i
item_module.newContent(id=item_id, reference='%i' % i) item_module.newContent(id=item_id, reference='%i' % i)
def validateRuleList(self):
portal_rules = self.getRuleTool()
for rule in portal_rules.objectValues():
rule.validate()
def stepTic(self, sequence=None, sequence_list=None, **kw): def stepTic(self, sequence=None, sequence_list=None, **kw):
self.tic() self.tic()
......
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