Commit 648e34aa authored by Jérome Perrin's avatar Jérome Perrin

never validate payment rules for now.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c56a1a3
...@@ -485,12 +485,16 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -485,12 +485,16 @@ 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