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
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
Hide 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,10 +267,11 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
...
@@ -267,10 +267,11 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
def
_restoreMailHost
(
self
):
def
_restoreMailHost
(
self
):
"""Restore original Mail Host
"""Restore original Mail Host
"""
"""
cls
=
self
.
portal
.
MailHost
.
__class__
if
self
.
portal
is
not
None
:
if
cls
.
__bases__
[
0
]
is
DummyMailHostMixin
:
cls
=
self
.
portal
.
MailHost
.
__class__
cls
.
__bases__
=
cls
.
__bases__
[
1
:]
if
cls
.
__bases__
[
0
]
is
DummyMailHostMixin
:
pmc_init_of
(
cls
)
cls
.
__bases__
=
cls
.
__bases__
[
1
:]
pmc_init_of
(
cls
)
def
pinDateTime
(
self
,
date_time
):
def
pinDateTime
(
self
,
date_time
):
# pretend time has stopped at a certain date (i.e. the test runs
# pretend time has stopped at a certain date (i.e. the test runs
...
...
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