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):
property_sheet_set.add(property_sheet_name)
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 = {}
  • Just saw this by accident, but aren't the two added lines equivalent than the two lines below ?

  • You're right. I will revert this part, thanks.

  • It came from rebase on top of master, which provided e43ca64b, which applied cleanly.

    Thanks for the heads-up, removed.

Please register or sign in to reply
# remember that we added a property sheet for tear down
if getattr(self, '_added_property_sheets', None) is None:
self._added_property_sheets = {}
......@@ -854,9 +858,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
template_list[:0] = (erp5_catalog_storage, 'erp5_property_sheets',
'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()
create_activities = self.enableActivityTool()
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