From e95ccce4d3c0805e5fc90756195d18f7169626a6 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Fri, 31 Aug 2007 12:19:41 +0000 Subject: [PATCH] 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 --- product/ERP5/tests/testInteractionWorkflow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5/tests/testInteractionWorkflow.py b/product/ERP5/tests/testInteractionWorkflow.py index 1378b17761..4b782d6d46 100644 --- a/product/ERP5/tests/testInteractionWorkflow.py +++ b/product/ERP5/tests/testInteractionWorkflow.py @@ -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') -- 2.30.9