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
f1a70424
Commit
f1a70424
authored
Feb 01, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forge py3
parent
33b8c8c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/BugLine_send.py
.../SkinTemplateItem/portal_skins/erp5_forge/BugLine_send.py
+1
-1
bt5/erp5_forge/TestTemplateItem/portal_components/test.erp5.testBug.py
...e/TestTemplateItem/portal_components/test.erp5.testBug.py
+4
-4
No files found.
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/BugLine_send.py
View file @
f1a70424
...
...
@@ -69,7 +69,7 @@ for to_url in to_url_list:
multipart
.
add_file
(
data
=
attachment_dict
[
'content'
],
content_type
=
attachment_dict
[
'mime_type'
],
filename
=
attachment_dict
[
'name'
])
mail_message
=
str
(
multipart
)
mail_message
=
bytes
(
multipart
)
# Bug Message not send email it self.
#context.activate(activity='SQLQueue').sendMailHostMessage(mail_message)
...
...
bt5/erp5_forge/TestTemplateItem/portal_components/test.erp5.testBug.py
View file @
f1a70424
...
...
@@ -218,7 +218,7 @@ class TestBug(ERP5TypeTestCase):
mfrom
,
mto
,
messageText
=
last_message
self
.
assertEqual
(
'dummy <loggedperson@localhost>'
,
mfrom
)
self
.
assertEqual
([
'person1@localhost'
],
mto
)
message
=
message_from_string
(
messageText
)
message
=
message_from_string
(
messageText
.
decode
()
)
self
.
assertTrue
(
decode_header
(
message
[
'Subject'
])[
0
][
0
].
endswith
(
bug
.
getTitle
()))
def
stepCheckBugMessageNotification
(
self
,
sequence
=
None
,
...
...
@@ -232,7 +232,7 @@ class TestBug(ERP5TypeTestCase):
mfrom
,
mto
,
messageText
=
last_message
self
.
assertEqual
(
'person2@localhost'
,
mfrom
)
self
.
assertEqual
([
'person1@localhost'
],
mto
)
message
=
message_from_string
(
messageText
)
message
=
message_from_string
(
messageText
.
decode
()
)
self
.
assertTrue
(
decode_header
(
message
[
'Subject'
])[
0
][
0
].
endswith
(
bug
.
getTitle
()))
def
stepSetSourceProject
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
...
...
@@ -315,8 +315,8 @@ class TestBug(ERP5TypeTestCase):
_
,
_
,
messageText
=
last_message
from
email.parser
import
Parser
p
=
Parser
()
m
=
p
.
parsestr
(
messageText
)
self
.
assertIn
(
'Re-assign!'
,
m
.
get_payload
()[
0
].
get_payload
(
decode
=
True
))
m
=
p
.
parsestr
(
messageText
.
decode
()
)
self
.
assertIn
(
b
'Re-assign!'
,
m
.
get_payload
()[
0
].
get_payload
(
decode
=
True
))
def
stepCheckBugInit
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
...
...
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