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
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0664e54d
Commit
0664e54d
authored
Aug 14, 2023
by
Emmy Vouriot
Committed by
Jérome Perrin
Mar 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove encode in py3
parent
bdb0028b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_api_style/TestTemplateItem/portal_components/test.erp5.testJioApiStyle.py
...mplateItem/portal_components/test.erp5.testJioApiStyle.py
+3
-3
No files found.
bt5/erp5_api_style/TestTemplateItem/portal_components/test.erp5.testJioApiStyle.py
View file @
0664e54d
...
...
@@ -604,7 +604,7 @@ return json.dumps({
raise
ValueError
(
"Unexcpected Answer %s"
%
response
)
self
.
assertEqual
(
self
.
portal
.
REQUEST
.
RESPONSE
.
getStatus
(),
201
)
self
.
portal
.
REQUEST
.
RESPONSE
.
setStatus
(
200
)
person
=
self
.
portal
.
restrictedTraverse
(
response
[
'id'
].
encode
())
person
=
self
.
portal
.
restrictedTraverse
(
response
[
'id'
].
encode
()
if
six
.
PY2
else
response
[
"id"
]
)
self
.
assertEqual
(
person
.
getTitle
(),
self
.
id_template
)
def
createUpdateScriptjIOWebSectionCreateOrganisationFromJSON
(
self
):
...
...
@@ -651,7 +651,7 @@ return json.dumps({
raise
ValueError
(
"Unexcpected Answer %s"
%
response
)
self
.
assertEqual
(
self
.
portal
.
REQUEST
.
RESPONSE
.
getStatus
(),
201
)
self
.
portal
.
REQUEST
.
RESPONSE
.
setStatus
(
200
)
organisation
=
self
.
portal
.
restrictedTraverse
(
response
[
'id'
].
encode
())
organisation
=
self
.
portal
.
restrictedTraverse
(
response
[
'id'
].
encode
()
if
six
.
PY2
else
response
[
"id"
]
)
self
.
assertEqual
(
organisation
.
getTitle
(),
self
.
id_template
)
# Check Second action
response
=
json
.
loads
(
self
.
postToApi
(
...
...
@@ -664,7 +664,7 @@ return json.dumps({
raise
ValueError
(
"Unexcpected Answer %s"
%
response
)
self
.
assertEqual
(
self
.
portal
.
REQUEST
.
RESPONSE
.
getStatus
(),
201
)
self
.
portal
.
REQUEST
.
RESPONSE
.
setStatus
(
200
)
person
=
self
.
portal
.
restrictedTraverse
(
response
[
'id'
].
encode
())
person
=
self
.
portal
.
restrictedTraverse
(
response
[
'id'
].
encode
()
if
six
.
PY2
else
response
[
"id"
]
)
self
.
assertEqual
(
person
.
getTitle
(),
self
.
id_template
)
def
test_action_post_no_action_matches
(
self
):
...
...
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