Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
4910c28a
Commit
4910c28a
authored
Dec 09, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_json_rpc_api: testfixup
parent
daa4807e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.testJsonRpcAPIService.py
...Item/portal_components/test.erp5.testJsonRpcAPIService.py
+9
-3
No files found.
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.testJsonRpcAPIService.py
View file @
4910c28a
...
@@ -472,12 +472,18 @@ class TestJsonRpcAPIJsonFormHandling(JsonRpcAPITestCase):
...
@@ -472,12 +472,18 @@ class TestJsonRpcAPIJsonFormHandling(JsonRpcAPITestCase):
'raise CustomError("custom error title")'
,
'raise CustomError("custom error title")'
,
)
)
self
.
addJSONForm
(
self
.
addJSONForm
(
'JsonRpcService_
testExample
'
,
'JsonRpcService_
callFromTest
'
,
'{}'
,
'{}'
,
after_method_id
=
'JsonRpcService_
fail
'
,
after_method_id
=
'JsonRpcService_
customError
'
,
)
)
response
=
self
.
publish
(
response
=
self
.
publish
(
self
.
connector
.
getPath
()
+
'/json.form.handling.callable'
)
self
.
connector
.
getPath
()
+
'/json.form.handling.callable'
,
user
=
'ERP5TypeTestCase'
,
request_method
=
'POST'
,
stdin
=
io
.
BytesIO
(
'{}'
.
encode
()),
env
=
{
'CONTENT_TYPE'
:
'application/json'
}
)
self
.
assertEqual
(
self
.
assertEqual
(
response
.
getBody
(),
response
.
getBody
(),
json
.
dumps
(
json
.
dumps
(
...
...
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