Commit c50c6299 authored by Aurel's avatar Aurel

test that preinstall method returns at least one object when trying to

upgrade a bt


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31441 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c09b9f0
......@@ -248,6 +248,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
bt = sequence.get('import_bt')
sequence.edit(current_bt=bt)
def stepCheckPreinstalReturnSomething(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.assertNotEquals(len(bt.preinstall()), 0)
def stepCheckInstalledInstallationState(self, sequence=None,
sequence_list=None, **kw):
"""
......@@ -3506,6 +3515,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
UseImportBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckPreinstalReturnSomething \
InstallBusinessTemplate \
Tic \
CheckInstalledInstallationState \
......
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