Commit 4910c28a authored by Romain Courteaud's avatar Romain Courteaud

erp5_json_rpc_api: testfixup

parent daa4807e
......@@ -472,12 +472,18 @@ class TestJsonRpcAPIJsonFormHandling(JsonRpcAPITestCase):
'raise CustomError("custom error title")',
)
self.addJSONForm(
'JsonRpcService_testExample',
'JsonRpcService_callFromTest',
'{}',
after_method_id='JsonRpcService_fail',
after_method_id='JsonRpcService_customError',
)
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(
response.getBody(),
json.dumps(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment