Commit e95ccce4 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use a different transition name (not edit) to prevent confusion.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15979 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35839f79
......@@ -95,8 +95,8 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
wf.scripts.manage_addProduct['PythonScripts']\
.manage_addPythonScript(id='afterEdit')
self.script = wf.scripts['afterEdit']
wf.interactions.addInteraction(id='edit')
self.interaction = wf.interactions['edit']
wf.interactions.addInteraction(id='edit_interaction')
self.interaction = wf.interactions['edit_interaction']
self.getWorkflowTool().setChainForPortalTypes(
[self.portal_type],'test_workflow')
_aq_reset() # XXX Fails XXX _setLastId not found when doing newContent
......@@ -182,7 +182,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
body = "context = sci.object\n" +\
"context.setDescription('toto')"
params = 'sci,**kw'
self.script.ZPythonScript_edit(params,body)
self.script.ZPythonScript_edit(params, body)
self.createData()
organisation = self.organisation
organisation.setDescription('bad')
......
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