Commit 22aab987 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 fb119279
...@@ -556,12 +556,7 @@ class ZopeSkinsMixin: ...@@ -556,12 +556,7 @@ class ZopeSkinsMixin:
except xmlrpc.client.ProtocolError as e: except xmlrpc.client.ProtocolError as e:
if e.errcode != 302: if e.errcode != 302:
raise raise
getattr(custom, script_id).ZPythonScriptHTML_editAction( getattr(custom, script_id).write(f'##parameters={params}\n\n{body}')
'',
'',
params,
body,
)
class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin): class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin):
......
...@@ -192,12 +192,7 @@ class TestERP5Upgrade(ERP5UpgradeTestCase): ...@@ -192,12 +192,7 @@ class TestERP5Upgrade(ERP5UpgradeTestCase):
except xmlrpc.client.ProtocolError as e: except xmlrpc.client.ProtocolError as e:
if e.errcode != 302: if e.errcode != 302:
raise raise
getattr(custom, script_id).ZPythonScriptHTML_editAction( getattr(custom, script_id).write(f'##parameters={params}\n\n{body}')
'',
'',
params,
body,
)
# a python script to create a person with a name # a python script to create a person with a name
addPythonScript( 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