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
4d11eac0
Commit
4d11eac0
authored
Aug 14, 2023
by
Emmy Vouriot
Committed by
Jérome Perrin
Feb 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove encode in py3
parent
1f79c5c7
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 @
4d11eac0
...
...
@@ -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