Commit b54e92c7 authored by Łukasz Nowak's avatar Łukasz Nowak

- fix method (it was doing inverted thing)

 - fix test code and simulate previous base code
 - assert that filesystem property sheet is removed, not ZODB one, as
   simulation mode is on


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45162 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e125de42
...@@ -7442,11 +7442,14 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7442,11 +7442,14 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
""" """
Add Property Sheet to Business Template Add Property Sheet to Business Template
""" """
sequence['current_bt'].edit(template_property_sheet_id_list=[sequence['ps_title']]) sequence['current_bt'].edit(template_property_sheet_id_list=[])
def test_BusinessTemplateWithDocumentPropertySheetRemoved(self): def test_BusinessTemplateWithDocumentPropertySheetRemoved(self):
"""Checks that if Business Template defines Document and PropertySheet """Checks that if Business Template defines Document and PropertySheet
Document is not removed""" Document is not removed
This test uses simulation of pre-property sheet migration to have non unique
paths to remove"""
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateDocument \ CreateDocument \
...@@ -7474,7 +7477,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7474,7 +7477,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckDocumentExists \ CheckDocumentExists \
CheckPropertySheetExists \ CheckPropertySheetExists \
\ \
CopyBusinessTemplate \ SimulateAndCopyPrePropertySheetMigrationBusinessTemplate \
Tic \ Tic \
\ \
RemovePropertySheetFromBusinessTemplate \ RemovePropertySheetFromBusinessTemplate \
...@@ -7484,7 +7487,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7484,7 +7487,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
UseImportBusinessTemplate \ UseImportBusinessTemplate \
CheckBuiltBuildingState \ CheckBuiltBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
InstallBusinessTemplate \ InstallWithoutForceBusinessTemplate \
Tic \ Tic \
\ \
CheckInstalledInstallationState \ 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