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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
81e2917f
Commit
81e2917f
authored
Apr 01, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: don't use six.iteritems() on msg, the only API is .items()
parent
1026da46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testNotificationTool.py
...eItem/portal_components/test.erp5.testNotificationTool.py
+1
-1
bt5/erp5_credential/TestTemplateItem/portal_components/test.erp5.testERP5Credential.py
...ateItem/portal_components/test.erp5.testERP5Credential.py
+1
-1
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testNotificationTool.py
View file @
81e2917f
...
@@ -51,7 +51,7 @@ def decode_email(file_):
...
@@ -51,7 +51,7 @@ def decode_email(file_):
msg
=
email
.
message_from_string
(
file_
.
decode
())
msg
=
email
.
message_from_string
(
file_
.
decode
())
# Back up original file
# Back up original file
theMail
[
'__original__'
]
=
file_
theMail
[
'__original__'
]
=
file_
for
key
,
value
in
six
.
iteritems
(
msg
):
for
key
,
value
in
msg
.
items
(
):
decoded_value_list
=
decode_header
(
value
)
decoded_value_list
=
decode_header
(
value
)
new_value
=
make_header
(
decoded_value_list
)
new_value
=
make_header
(
decoded_value_list
)
if
six
.
PY2
:
if
six
.
PY2
:
...
...
bt5/erp5_credential/TestTemplateItem/portal_components/test.erp5.testERP5Credential.py
View file @
81e2917f
...
@@ -175,7 +175,7 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -175,7 +175,7 @@ class TestERP5Credential(ERP5TypeTestCase):
msg
=
email
.
message_from_string
(
file_
.
decode
())
msg
=
email
.
message_from_string
(
file_
.
decode
())
# Back up original file
# Back up original file
theMail
[
'__original__'
]
=
file_
theMail
[
'__original__'
]
=
file_
for
key
,
value
in
six
.
iteritems
(
msg
):
for
key
,
value
in
msg
.
items
(
):
decoded_value_list
=
decode_header
(
value
)
decoded_value_list
=
decode_header
(
value
)
new_value
=
make_header
(
decoded_value_list
)
new_value
=
make_header
(
decoded_value_list
)
if
six
.
PY2
:
if
six
.
PY2
:
...
...
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