Commit bcfaecad authored by Jérome Perrin's avatar Jérome Perrin

validate all rules


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26097 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 620afa22
...@@ -528,15 +528,11 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -528,15 +528,11 @@ class ERP5TypeTestCase(PortalTestCase):
def validateRules(self): def validateRules(self):
""" """
try to validate all rules in rule_tool. try to validate all rules in rule_tool.
XXX except the default payment rule.
""" """
rule_tool = self.getRuleTool() rule_tool = self.getRuleTool()
for rule in rule_tool.contentValues( for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()): portal_type=rule_tool.getPortalRuleTypeList()):
if rule.getId() != 'default_payment_rule':
rule.validate() rule.validate()
else:
warnings.warn('Rule %s not validated' % rule.getId())
def tic(self): def tic(self):
""" """
......
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