Commit a9c117ef authored by Christophe Dumez's avatar Christophe Dumez

- Added a test for bug #447


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aba1ccfa
...@@ -493,7 +493,7 @@ class TestBusinessTemplate(ERP5TypeTestCase): ...@@ -493,7 +493,7 @@ class TestBusinessTemplate(ERP5TypeTestCase):
if 'erp5_geek' not in selection: if 'erp5_geek' not in selection:
selection.append('erp5_geek') selection.append('erp5_geek')
ps.manage_skinLayers(skinpath = tuple(selection), skinname = skin_name, add_skin = 1) ps.manage_skinLayers(skinpath = tuple(selection), skinname = skin_name, add_skin = 1)
def stepCreateSkinSubFolder(self, sequence=None, sequence_list=None, **kw): def stepCreateSkinSubFolder(self, sequence=None, sequence_list=None, **kw):
ps = self.getSkinsTool() ps = self.getSkinsTool()
skin_folder = ps._getOb('erp5_geek', None) skin_folder = ps._getOb('erp5_geek', None)
...@@ -3138,6 +3138,30 @@ class TestBusinessTemplate(ERP5TypeTestCase): ...@@ -3138,6 +3138,30 @@ class TestBusinessTemplate(ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
def test_29_CheckUninstallRemovedSkinFolder(self, quiet=quiet, run=run_all_test):
if not run: return
if not quiet:
message = 'Test if uninstall works even when the skin folder has already been removed from the site'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ', 0, message)
sequence_list = SequenceList()
sequence_string = '\
CreatePortalType \
CreateSkinFolder \
CheckSkinFolderExists \
CreateNewBusinessTemplate \
UseExportBusinessTemplate \
AddSkinFolderToBusinessTemplate \
BuildBusinessTemplate \
InstallCurrentBusinessTemplate \
RemoveSkinFolder \
UninstallBusinessTemplate \
RemoveBusinessTemplate \
RemovePortalType \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
else: else:
......
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