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

ERP5TypeTestCase: Make it compatible with "Live Tests"

parent ae4fc245
...@@ -429,6 +429,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): ...@@ -429,6 +429,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
property_sheet_set.add(property_sheet_name) property_sheet_set.add(property_sheet_name)
ti.setTypePropertySheetList(list(property_sheet_set)) ti.setTypePropertySheetList(list(property_sheet_set))
# keep a mapping type info name -> property sheet list, to remove them in
# tear down.
if not hasattr(self, '_added_property_sheets'):
self._added_property_sheets = {}
# remember that we added a property sheet for tear down # remember that we added a property sheet for tear down
if getattr(self, '_added_property_sheets', None) is None: if getattr(self, '_added_property_sheets', None) is None:
self._added_property_sheets = {} self._added_property_sheets = {}
...@@ -854,9 +858,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin): ...@@ -854,9 +858,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
template_list[:0] = (erp5_catalog_storage, 'erp5_property_sheets', template_list[:0] = (erp5_catalog_storage, 'erp5_property_sheets',
'erp5_core', 'erp5_xhtml_style') 'erp5_core', 'erp5_xhtml_style')
# keep a mapping type info name -> property sheet list, to remove them in
# tear down.
self._added_property_sheets = {}
light_install = self.enableLightInstall() light_install = self.enableLightInstall()
create_activities = self.enableActivityTool() create_activities = self.enableActivityTool()
hot_reindexing = self.enableHotReindexing() hot_reindexing = self.enableHotReindexing()
......
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