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
alecs_myu
erp5
Commits
6a67dfd2
Commit
6a67dfd2
authored
Oct 23, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Make close work when setup failed
... so that we have setup's error message
parent
8fab4d97
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
+1
-1
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+5
-4
No files found.
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
View file @
6a67dfd2
...
@@ -135,7 +135,7 @@ class ERP5TypeLiveTestCase(ERP5TypeTestCaseMixin):
...
@@ -135,7 +135,7 @@ class ERP5TypeLiveTestCase(ERP5TypeTestCaseMixin):
self
.
abort
()
self
.
abort
()
self
.
_restoreMailHost
()
self
.
_restoreMailHost
()
if
self
.
activity_tool_subscribed
:
if
getattr
(
self
,
"activity_tool_subscribed"
,
False
)
:
self
.
portal
.
portal_activities
.
subscribe
()
self
.
portal
.
portal_activities
.
subscribe
()
self
.
commit
()
self
.
commit
()
...
...
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
6a67dfd2
...
@@ -267,6 +267,7 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
...
@@ -267,6 +267,7 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
def
_restoreMailHost
(
self
):
def
_restoreMailHost
(
self
):
"""Restore original Mail Host
"""Restore original Mail Host
"""
"""
if
self
.
portal
is
not
None
:
cls
=
self
.
portal
.
MailHost
.
__class__
cls
=
self
.
portal
.
MailHost
.
__class__
if
cls
.
__bases__
[
0
]
is
DummyMailHostMixin
:
if
cls
.
__bases__
[
0
]
is
DummyMailHostMixin
:
cls
.
__bases__
=
cls
.
__bases__
[
1
:]
cls
.
__bases__
=
cls
.
__bases__
[
1
:]
...
...
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