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): ...@@ -1476,19 +1476,19 @@ class TestBusinessTemplate(ERP5TypeTestCase):
prop_dict[pid[:-5]] = () prop_dict[pid[:-5]] = ()
bt.edit(**prop_dict) 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 Remove Trash Tool from site
""" """
p = self.getPortal() p = self.getPortal()
p.manage_delObjects(['portal_trash']) p.manage_delObjects(['portal_simulation'])
self.failUnless(p._getOb('portal_trash', None) is None) 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 Check presence of trash tool
""" """
self.failUnless(self.getTrashTool() is not None) self.failUnless(self.getSimulationTool() is not None)
# tests # tests
def test_01_checkNewSite(self, quiet=0, run=run_all_test): def test_01_checkNewSite(self, quiet=0, run=run_all_test):
...@@ -2591,7 +2591,7 @@ class TestBusinessTemplate(ERP5TypeTestCase): ...@@ -2591,7 +2591,7 @@ class TestBusinessTemplate(ERP5TypeTestCase):
RemovePropertySheet \ RemovePropertySheet \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
RemoveAllTrashBins \ RemoveAllTrashBins \
RemoveTrashTool \ RemoveSimulationTool \
ImportBusinessTemplate \ ImportBusinessTemplate \
UseImportBusinessTemplate \ UseImportBusinessTemplate \
CheckBuiltBuildingState \ CheckBuiltBuildingState \
...@@ -2600,7 +2600,7 @@ class TestBusinessTemplate(ERP5TypeTestCase): ...@@ -2600,7 +2600,7 @@ class TestBusinessTemplate(ERP5TypeTestCase):
Tic \ Tic \
CheckInstalledInstallationState \ CheckInstalledInstallationState \
CheckBuiltBuildingState \ CheckBuiltBuildingState \
CheckTrashToolExists \ CheckSimulationToolExists \
CheckSkinsLayers \ CheckSkinsLayers \
CheckPortalTypeExists \ CheckPortalTypeExists \
CheckModuleExists \ 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