Commit ebfad4b1 authored by Vincent Pelletier's avatar Vincent Pelletier

testDivergenceTester: Use ERP5-customised CopySupport API for documents.

parent 7b760a5a
...@@ -73,7 +73,10 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase): ...@@ -73,7 +73,10 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase):
prefix = 'testDivergenceTester_' prefix = 'testDivergenceTester_'
new_rule_id = prefix + rule.getId() new_rule_id = prefix + rule.getId()
new_rule_reference = prefix + rule.getReference() new_rule_reference = prefix + rule.getReference()
rule = portal_rules.manage_clone(rule, new_rule_id) rule = portal_rules[portal_rules.manage_pasteObjects(
portal_rules.manage_copyObjects([rule.getId()]),
)[0]['new_id']]
rule.setId(new_rule_id)
rule.setVersion(str(int(rule.getVersion()) + 1)) rule.setVersion(str(int(rule.getVersion()) + 1))
rule.setReference(new_rule_reference) rule.setReference(new_rule_reference)
tester_list = rule.contentValues( tester_list = rule.contentValues(
......
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