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
Klaus Wölfel
erp5
Commits
5921ee9e
Commit
5921ee9e
authored
Sep 30, 2021
by
Aurel
Committed by
Jérome Perrin
Mar 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zope4 add charset=utf-8 in header
parent
5742bf4b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
product/ERP5OOo/tests/testFormPrintoutAsODG.py
product/ERP5OOo/tests/testFormPrintoutAsODG.py
+2
-1
product/ERP5OOo/tests/testFormPrintoutAsODT.py
product/ERP5OOo/tests/testFormPrintoutAsODT.py
+2
-1
No files found.
product/ERP5OOo/tests/testFormPrintoutAsODG.py
View file @
5921ee9e
...
@@ -201,7 +201,8 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
...
@@ -201,7 +201,8 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
content_xml
=
builder
.
extract
(
"content.xml"
)
content_xml
=
builder
.
extract
(
"content.xml"
)
self
.
assertTrue
(
content_xml
.
find
(
"call!"
)
>
0
)
self
.
assertTrue
(
content_xml
.
find
(
"call!"
)
>
0
)
# when just call FormPrintout, it does not change content-type
# when just call FormPrintout, it does not change content-type
self
.
assertEqual
(
request
.
RESPONSE
.
getHeader
(
'content-type'
),
'text/html'
)
# Zope4 add charset=utf-8
self
.
assertTrue
(
'text/html'
in
request
.
RESPONSE
.
getHeader
(
'content-type'
))
self
.
_validate
(
odf_document
)
self
.
_validate
(
odf_document
)
# 5. Normal case: utf-8 string
# 5. Normal case: utf-8 string
...
...
product/ERP5OOo/tests/testFormPrintoutAsODT.py
View file @
5921ee9e
...
@@ -199,7 +199,8 @@ class TestFormPrintoutAsODT(TestFormPrintoutMixin):
...
@@ -199,7 +199,8 @@ class TestFormPrintoutAsODT(TestFormPrintoutMixin):
builder
=
OOoBuilder
(
odf_document
)
builder
=
OOoBuilder
(
odf_document
)
content_xml
=
builder
.
extract
(
"content.xml"
)
content_xml
=
builder
.
extract
(
"content.xml"
)
self
.
assertTrue
(
content_xml
.
find
(
"call!"
)
>
0
)
self
.
assertTrue
(
content_xml
.
find
(
"call!"
)
>
0
)
self
.
assertEqual
(
request
.
RESPONSE
.
getHeader
(
'content-type'
),
'text/html'
)
# Zope4 add charset=utf-8
self
.
assertTrue
(
'text/html'
in
request
.
RESPONSE
.
getHeader
(
'content-type'
))
self
.
_validate
(
odf_document
)
self
.
_validate
(
odf_document
)
# 5. Normal case: utf-8 string
# 5. Normal case: utf-8 string
...
...
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