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
b227c438
Commit
b227c438
authored
Dec 18, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testCRM: remove a duplicated test
parent
2c7b42db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
product/ERP5/tests/testCRM.py
product/ERP5/tests/testCRM.py
+3
-17
No files found.
product/ERP5/tests/testCRM.py
View file @
b227c438
...
...
@@ -1095,6 +1095,9 @@ class TestCRMMailSend(BaseTestCRM):
self
.
portal
.
portal_workflow
.
doActionFor
(
event
,
'start_action'
,
send_mail
=
1
)
self
.
tic
()
# content type is kept
self
.
assertEquals
(
event
.
getContentType
(),
'text/html'
)
# The getTextContent() gets the content from the file data instead the
# Attribute text_content.
self
.
assertEquals
(
event
.
text_content
,
text_content
)
...
...
@@ -1114,23 +1117,6 @@ class TestCRMMailSend(BaseTestCRM):
self
.
assertNotEqual
(
part
,
None
)
self
.
assertEqual
(
'<html><body>%s</body></html>'
%
text_content
,
part
.
get_payload
(
decode
=
True
))
def
test_MailMessageHTMLbis
(
self
):
# test sending a mail message edited as HTML (the default with FCKEditor),
# then the mail should have HTML
text_content
=
'Hello<br/>World'
event
=
self
.
portal
.
event_module
.
newContent
(
portal_type
=
'Mail Message'
)
event
.
setSource
(
'person_module/me'
)
event
.
setDestination
(
'person_module/recipient'
)
event
.
setContentType
(
'text/html'
)
event
.
setTextContent
(
text_content
)
self
.
portal
.
portal_workflow
.
doActionFor
(
event
,
'start_action'
,
send_mail
=
1
)
self
.
tic
()
# This test fails because of known issue for outgoing emails.
# there is conflict between properties from data
# and properties from document.
self
.
assertEquals
(
event
.
getContentType
(),
'text/html'
)
def
test_MailMessageEncoding
(
self
):
# test sending a mail message with non ascii characters
event
=
self
.
portal
.
event_module
.
newContent
(
portal_type
=
'Mail Message'
)
...
...
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