Commit 87d17ee2 authored by Julien Muchembled's avatar Julien Muchembled

Unit tests: initialize _added_property_sheets before setUpOnce and afterSetUp

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30186 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9da18f03
......@@ -409,6 +409,9 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
template = '%s.bt5' % template
new_template_list.append((template,id))
# 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()
......@@ -422,9 +425,6 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
global current_app
current_app = self.app
self._updateConnectionStrings()
# keep a mapping type info name -> property sheet list, to remove them in
# tear down.
self._added_property_sheets = {}
def afterSetUp(self):
'''Called after setUp() has completed. This is
......
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