Commit 7367e81a authored by Aurel's avatar Aurel

revert previous commit, it was not done in the right legacy test


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e5f4944
......@@ -100,6 +100,19 @@ class TestOrderMixin:
self.validateRules()
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):
currency_module = self.getPortal().currency_module
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