Commit b44815cc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use new_invoice_rule instead of default_invoice_rule to use the new simulation API.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32162 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c3b0a20
...@@ -231,7 +231,7 @@ class TestBPMEvaluationMixin(TestBPMMixin): ...@@ -231,7 +231,7 @@ class TestBPMEvaluationMixin(TestBPMMixin):
# need those rule to create empty one applied rule # need those rule to create empty one applied rule
rule_tool = self.portal.portal_rules rule_tool = self.portal.portal_rules
clipboard = rule_tool.manage_copyObjects(ids = ['default_invoice_rule']) clipboard = rule_tool.manage_copyObjects(ids = ['new_invoice_rule'])
pasted = rule_tool.manage_pasteObjects(clipboard) pasted = rule_tool.manage_pasteObjects(clipboard)
new_rule = getattr(rule_tool, pasted[0]['new_id']) new_rule = getattr(rule_tool, pasted[0]['new_id'])
new_rule.validate() new_rule.validate()
......
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