Commit 4358ba18 authored by Sebastien Robin's avatar Sebastien Robin Committed by Georgios Dagkakis

BusinessTemplate: make sure we could modify broken objects before installation (part 2)

Fix unit test errors due to data remaining from other tests
parent 5bd898f0
......@@ -6348,6 +6348,12 @@ class TestBusinessTemplate(BusinessTemplateMixin):
though test_167 was running fine (due to additional steps that were
doing more reset of components)
"""
# Make sure we have no portal type Foo generated from a previous test
try:
import erp5
del erp5.portal_type.Foo
except AttributeError:
pass
template_tool = self.portal.portal_templates
bt_path = os.path.join(os.path.dirname(__file__), 'test_data',
'BusinessTemplate_test_168_CheckPortalTypeAndPathInSameBusinessTemplate')
......
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