Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
wendelin
Commits
f0ff1615
Commit
f0ff1615
authored
Nov 18, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py3: use str2bytes when needed
parent
e660251a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
...tTemplateItem/portal_components/test.erp5.testWendelin.py
+2
-1
No files found.
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
View file @
f0ff1615
...
@@ -36,6 +36,7 @@ from zExceptions import BadRequest
...
@@ -36,6 +36,7 @@ from zExceptions import BadRequest
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.utils
import
createZODBPythonScript
,
removeZODBPythonScript
from
Products.ERP5Type.tests.utils
import
createZODBPythonScript
,
removeZODBPythonScript
from
Products.ERP5Type.Utils
import
str2bytes
from
wendelin.bigarray.array_zodb
import
ZBigArray
from
wendelin.bigarray.array_zodb
import
ZBigArray
from
App.version_txt
import
getZopeVersion
from
App.version_txt
import
getZopeVersion
...
@@ -100,7 +101,7 @@ class Test(ERP5TypeTestCase):
...
@@ -100,7 +101,7 @@ class Test(ERP5TypeTestCase):
body
=
msgpack
.
packb
([
0
,
real_data
],
use_bin_type
=
True
)
body
=
msgpack
.
packb
([
0
,
real_data
],
use_bin_type
=
True
)
if
old_fluentd
:
if
old_fluentd
:
env
=
{
'CONTENT_TYPE'
:
'application/x-www-form-urlencoded'
}
env
=
{
'CONTENT_TYPE'
:
'application/x-www-form-urlencoded'
}
body
=
urllib
.
parse
.
urlencode
({
'data_chunk'
:
body
}
)
body
=
str2bytes
(
urllib
.
parse
.
urlencode
({
'data_chunk'
:
body
})
)
else
:
else
:
env
=
{
'CONTENT_TYPE'
:
'application/octet-stream'
}
env
=
{
'CONTENT_TYPE'
:
'application/octet-stream'
}
path
=
ingestion_policy
.
getPath
()
+
'/ingest?reference='
+
reference
path
=
ingestion_policy
.
getPath
()
+
'/ingest?reference='
+
reference
...
...
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