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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
erp5
Commits
7673653f
Commit
7673653f
authored
Mar 24, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui_test_core: reset sent messages when setting up dummy mailhost
parent
595accf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.MailHostUtils.py
...ateItem/portal_components/extension.erp5.MailHostUtils.py
+4
-1
No files found.
bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.MailHostUtils.py
View file @
7673653f
...
@@ -31,11 +31,14 @@ from Products.ERP5Type.tests.utils import DummyMailHostMixin
...
@@ -31,11 +31,14 @@ from Products.ERP5Type.tests.utils import DummyMailHostMixin
def
setupDummyMailHost
(
self
):
def
setupDummyMailHost
(
self
):
"""Replace Original Mail Host by Dummy Mail Host in a non-persistent way
"""Replace Original Mail Host by Dummy Mail Host in a non-persistent way
and reset the list of already sent messages.
Copied & pasted from ERP5TypeTestCaseMixin._setUpDummyMailHost
Copied & pasted from ERP5TypeTestCaseMixin._setUpDummyMailHost
"""
"""
cls
=
self
.
getPortalObject
().
MailHost
.
__class__
mailhost
=
self
.
getPortalObject
().
MailHost
cls
=
mailhost
.
__class__
if
not
issubclass
(
cls
,
DummyMailHostMixin
):
if
not
issubclass
(
cls
,
DummyMailHostMixin
):
cls
.
__bases__
=
(
DummyMailHostMixin
,)
+
cls
.
__bases__
cls
.
__bases__
=
(
DummyMailHostMixin
,)
+
cls
.
__bases__
pmc_init_of
(
cls
)
pmc_init_of
(
cls
)
mailhost
.
reset
()
return
True
return
True
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