Commit 59b4bb4a authored by Aurel's avatar Aurel

check Simulation tool instead of Trash tool at upgrade of tool because

trash tool is required for installation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5dd4ed8b
......@@ -1476,19 +1476,19 @@ class TestBusinessTemplate(ERP5TypeTestCase):
prop_dict[pid[:-5]] = ()
bt.edit(**prop_dict)
def stepRemoveTrashTool(self, sequence=None, sequence_list=None, **kw):
def stepRemoveSimulationTool(self, sequence=None, sequence_list=None, **kw):
"""
Remove Trash Tool from site
"""
p = self.getPortal()
p.manage_delObjects(['portal_trash'])
self.failUnless(p._getOb('portal_trash', None) is None)
p.manage_delObjects(['portal_simulation'])
self.failUnless(p._getOb('portal_simulation', None) is None)
def stepCheckTrashToolExists(self, sequence=None, sequence_list=None, **kw):
def stepCheckSimulationToolExists(self, sequence=None, sequence_list=None, **kw):
"""
Check presence of trash tool
"""
self.failUnless(self.getTrashTool() is not None)
self.failUnless(self.getSimulationTool() is not None)
# tests
def test_01_checkNewSite(self, quiet=0, run=run_all_test):
......@@ -2591,7 +2591,7 @@ class TestBusinessTemplate(ERP5TypeTestCase):
RemovePropertySheet \
RemoveBusinessTemplate \
RemoveAllTrashBins \
RemoveTrashTool \
RemoveSimulationTool \
ImportBusinessTemplate \
UseImportBusinessTemplate \
CheckBuiltBuildingState \
......@@ -2600,7 +2600,7 @@ class TestBusinessTemplate(ERP5TypeTestCase):
Tic \
CheckInstalledInstallationState \
CheckBuiltBuildingState \
CheckTrashToolExists \
CheckSimulationToolExists \
CheckSkinsLayers \
CheckPortalTypeExists \
CheckModuleExists \
......
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