Commit b75221cc authored by Jérome Perrin's avatar Jérome Perrin

erp5/test: use ZPythonScript_edit instead of ZPythonScriptHTML_editAction

The later is not really supposed to be XML-RPC comptabible and it's
anyway to use ZPythonScript_edit
parent 328b8dba
......@@ -556,12 +556,7 @@ class ZopeSkinsMixin:
except xmlrpc.client.ProtocolError as e:
if e.errcode != 302:
raise
getattr(custom, script_id).ZPythonScriptHTML_editAction(
'',
'',
params,
body,
)
getattr(custom, script_id).write(f'##parameters={params}\n\n{body}')
class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin):
......
......@@ -192,12 +192,7 @@ class TestERP5Upgrade(ERP5UpgradeTestCase):
except xmlrpc.client.ProtocolError as e:
if e.errcode != 302:
raise
getattr(custom, script_id).ZPythonScriptHTML_editAction(
'',
'',
params,
body,
)
getattr(custom, script_id).write(f'##parameters={params}\n\n{body}')
# a python script to create a person with a name
addPythonScript(
......
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