Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
ebfad4b1
Commit
ebfad4b1
authored
Sep 20, 2019
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testDivergenceTester: Use ERP5-customised CopySupport API for documents.
parent
7b760a5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5/tests/testDivergenceTester.py
product/ERP5/tests/testDivergenceTester.py
+4
-1
No files found.
product/ERP5/tests/testDivergenceTester.py
View file @
ebfad4b1
...
...
@@ -73,7 +73,10 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase):
prefix
=
'testDivergenceTester_'
new_rule_id
=
prefix
+
rule
.
getId
()
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
.
setReference
(
new_rule_reference
)
tester_list
=
rule
.
contentValues
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment