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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
914f46fe
Commit
914f46fe
authored
Sep 17, 2019
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testCopySupport: Do not contaminate other tests in same file.
parent
0c568094
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
product/ERP5Type/tests/testCopySupport.py
product/ERP5Type/tests/testCopySupport.py
+20
-15
No files found.
product/ERP5Type/tests/testCopySupport.py
View file @
914f46fe
...
@@ -66,6 +66,7 @@ class TestCopySupport(ERP5TypeTestCase):
...
@@ -66,6 +66,7 @@ class TestCopySupport(ERP5TypeTestCase):
# Try to rename: must work
# Try to rename: must work
self
.
organisation_module
.
setId
(
'new_organisation_module'
)
self
.
organisation_module
.
setId
(
'new_organisation_module'
)
self
.
commit
()
self
.
commit
()
try
:
self
.
assertTrue
(
person
.
getCareerSubordination
().
startswith
(
'organisation_module'
))
self
.
assertTrue
(
person
.
getCareerSubordination
().
startswith
(
'organisation_module'
))
initial_activity_count
=
len
(
self
.
portal
.
portal_activities
.
getMessageList
())
initial_activity_count
=
len
(
self
.
portal
.
portal_activities
.
getMessageList
())
self
.
assertNotEqual
(
0
,
initial_activity_count
)
self
.
assertNotEqual
(
0
,
initial_activity_count
)
...
@@ -78,6 +79,10 @@ class TestCopySupport(ERP5TypeTestCase):
...
@@ -78,6 +79,10 @@ class TestCopySupport(ERP5TypeTestCase):
# Check that external relation was updated
# Check that external relation was updated
self
.
assertTrue
(
person
.
getCareerSubordination
().
startswith
(
'new_organisation_module'
))
self
.
assertTrue
(
person
.
getCareerSubordination
().
startswith
(
'new_organisation_module'
))
self
.
assertTrue
(
person
.
getCareerSubordinationValue
().
aq_base
is
organisation
.
aq_base
)
self
.
assertTrue
(
person
.
getCareerSubordinationValue
().
aq_base
is
organisation
.
aq_base
)
except
Exception
:
self
.
abort
()
raise
finally
:
# Rename back to original name
# Rename back to original name
self
.
organisation_module
.
setId
(
'organisation_module'
)
self
.
organisation_module
.
setId
(
'organisation_module'
)
self
.
tic
()
self
.
tic
()
...
...
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