Commit b8af75e6 authored by Aurel's avatar Aurel

all rules should be validated in legacy tests


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37695 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca01799d
...@@ -100,19 +100,6 @@ class TestOrderMixin: ...@@ -100,19 +100,6 @@ class TestOrderMixin:
self.validateRules() self.validateRules()
self.setUpPreferences() self.setUpPreferences()
def validateRules(self):
"""
try to validate all rules in rule_tool.
"""
rule_tool = self.getRuleTool()
for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()):
if rule.getValidationState() != 'validated':
rule.validate()
# do not use new 'XXX Simulation Rule' in legacy tests.
if 'Simulation Rule' in rule.getPortalType():
rule.invalidate()
def createCurrency(self): def createCurrency(self):
currency_module = self.getPortal().currency_module currency_module = self.getPortal().currency_module
if currency_module._getOb('euro', None) is None: if currency_module._getOb('euro', None) is None:
......
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