Commit 8af42eab authored by Aurel's avatar Aurel

fix a typo

check preinstall more precisely
don't install using force, to be sure that only stuff returned by
preinstall in installed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31442 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c50c6299
...@@ -248,7 +248,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -248,7 +248,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
bt = sequence.get('import_bt') bt = sequence.get('import_bt')
sequence.edit(current_bt=bt) sequence.edit(current_bt=bt)
def stepCheckPreinstalReturnSomething(self, sequence=None, def stepCheckPreinstallReturnSomething(self, sequence=None,
sequence_list=None, **kw): sequence_list=None, **kw):
""" """
In case of upgrade preinstall call must return at least one element In case of upgrade preinstall call must return at least one element
...@@ -257,6 +257,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -257,6 +257,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
bt = sequence.get('current_bt', None) bt = sequence.get('current_bt', None)
self.assertNotEquals(len(bt.preinstall()), 0) self.assertNotEquals(len(bt.preinstall()), 0)
def stepCheckCatalogPreinstallReturnCatalogMethod(self, sequence=None,
sequence_list=None, **kw):
"""
In case of upgrade preinstall call must return at least one element
which is marked as new/updated/removed
"""
bt = sequence.get('current_bt', None)
self.assertEquals(bt.preinstall(), {'portal_catalog/erp5_mysql_innodb/z_fake_method': ['Modified', 'CatalogMethod']})
def stepCheckInstalledInstallationState(self, sequence=None, def stepCheckInstalledInstallationState(self, sequence=None,
sequence_list=None, **kw): sequence_list=None, **kw):
""" """
...@@ -3515,8 +3524,9 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3515,8 +3524,9 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
UseImportBusinessTemplate \ UseImportBusinessTemplate \
CheckBuiltBuildingState \ CheckBuiltBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
CheckPreinstalReturnSomething \ CheckPreinstallReturnSomething \
InstallBusinessTemplate \ CheckCatalogPreinstallReturnCatalogMethod \
InstallWithoutForceBusinessTemplate \
Tic \ Tic \
CheckInstalledInstallationState \ CheckInstalledInstallationState \
CheckBuiltBuildingState \ CheckBuiltBuildingState \
......
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