Commit 76cd42f6 authored by Romain Courteaud's avatar Romain Courteaud

Also remove skin folder for skin layers.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18705 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a842f56b
......@@ -85,6 +85,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
"""Remove objects created tests."""
if 'erp5_geek' in self.getSkinsTool().objectIds():
self.getSkinsTool().manage_delObjects(['erp5_geek'])
ps = self.getSkinsTool()
for skin_name, selection in ps.getSkinPaths():
new_selection = []
selection = selection.split(',')
for skin_id in selection:
if skin_id != 'erp5_geek':
new_selection.append(skin_id)
ps.manage_skinLayers(skinpath=tuple(new_selection),
skinname=skin_name, add_skin=1)
if 'Geek Object' in self.getTypeTool().objectIds():
self.getTypeTool().manage_delObjects(['Geek Object', 'Geek Module'])
if 'geek_module' in self.getPortal().objectIds():
......
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