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
327f8979
Commit
327f8979
authored
Sep 30, 2021
by
Aurel
Committed by
Arnaud Fontaine
Jan 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zope4 add charset=utf-8 in header
parent
3ee4821c
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 @
327f8979
...
@@ -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 @
327f8979
...
@@ -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