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
Carlos Ramos Carreño
erp5
Commits
35ebf548
Commit
35ebf548
authored
Apr 05, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! testInterfacePost: compare message by parse and dump to ignore line-wrap differences.
parent
78686b2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
bt5/erp5_interface_post/TestTemplateItem/portal_components/test.erp5.testInterfacePost.py
...lateItem/portal_components/test.erp5.testInterfacePost.py
+9
-6
No files found.
bt5/erp5_interface_post/TestTemplateItem/portal_components/test.erp5.testInterfacePost.py
View file @
35ebf548
...
...
@@ -24,10 +24,13 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
import
email
import
mock
import
time
import
six
if
six
.
PY3
:
from
email
import
message_from_bytes
else
:
from
email
import
message_from_string
as
message_from_bytes
from
Products.ERP5Type.tests.ERP5TypeLiveTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
Products.ZSQLCatalog.SQLCatalog
import
SimpleQuery
...
...
@@ -248,8 +251,8 @@ class TestInterfacePost(ERP5TypeTestCase):
self
.
assertNotEqual
((),
last_message
)
_
,
_
,
message_text
=
last_message
self
.
assertEqual
(
bytes
(
email
.
message_from_bytes
(
message_text
)),
bytes
(
email
.
message_from_bytes
(
sequence
[
'internet_message_post'
].
getData
())),
bytes
(
message_from_bytes
(
message_text
)),
bytes
(
message_from_bytes
(
sequence
[
'internet_message_post'
].
getData
())),
)
def
_getMailHostMessageForRecipient
(
self
,
recipient_email_address
):
...
...
@@ -272,8 +275,8 @@ class TestInterfacePost(ERP5TypeTestCase):
message
=
message_list
[
0
]
_
,
_
,
message_text
=
message
self
.
assertEqual
(
bytes
(
email
.
message_from_bytes
(
message_text
)),
bytes
(
email
.
message_from_bytes
(
post
.
getData
())),
bytes
(
message_from_bytes
(
message_text
)),
bytes
(
message_from_bytes
(
post
.
getData
())),
)
def
stepCheckMailMessagePreviewDisplaysLatestInternetMessagePostData
(
self
,
sequence
=
None
,
sequence_list
=
None
):
...
...
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