From 5570252a73df0961dd4d4aefc24ea40b290e53de Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Thu, 18 Mar 2010 08:59:13 +0000 Subject: [PATCH] Do not override existing step. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33839 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testBusinessTemplate.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index 18e79cd601..5b1d9a778b 100644 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -5685,13 +5685,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): sequence.set('python_script_id', python_script_id) sequence.set('skin_folder_id', skin_folder_id) - def stepAddSkinFolderToBusinessTemplate(self, sequence=None, sequence_list=None, **kw): + def stepAddCustomSkinFolderToBusinessTemplate(self, sequence=None, sequence_list=None, **kw): """ Add types to business template """ bt = sequence.get('current_bt', None) self.failUnless(bt is not None) - bt.edit(template_skin_id_list=('custom')) + template_skin_id_list = list(bt.getProperty('template_skin_id_list')) + template_skin_id_list.append('custom') + bt.edit(template_skin_id_list=template_skin_id_list) def stepCheckFakeScriptIsDeleted(self, sequence=None, sequence_list=None, **kw): """Check that script inside ZODB is deleted by BT reinstallation @@ -5726,7 +5728,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): \ CreateNewBusinessTemplate \ UseExportBusinessTemplate \ - AddSkinFolderToBusinessTemplate \ + AddCustomSkinFolderToBusinessTemplate \ BuildBusinessTemplate \ SaveBusinessTemplate \ InstallCurrentBusinessTemplate Tic \ -- 2.30.9