Commit 666709fb authored by Jérome Perrin's avatar Jérome Perrin

testBusinessTemplate: Use different business templates names in each tests

Quick way to isolate tests
parent e523fd6f
...@@ -6333,7 +6333,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6333,7 +6333,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# check the previously existing instance now behaves as the overriden class # check the previously existing instance now behaves as the overriden class
self.assertTrue(getattr(portal.another_file, 'isClassOverriden', False)) self.assertTrue(getattr(portal.another_file, 'isClassOverriden', False))
# test uninstall is effective # test uninstall is effective
self.uninstallBusinessTemplate('test_bt') self.uninstallBusinessTemplate('test_167_InstanceAndRelatedClassDefinedInSameBT')
# check both File instances no longer behave like being overriden # check both File instances no longer behave like being overriden
self.assertFalse(getattr(portal.another_file, 'isClassOverriden', False)) self.assertFalse(getattr(portal.another_file, 'isClassOverriden', False))
...@@ -6375,7 +6375,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6375,7 +6375,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent( bt = self.portal.portal_templates.newContent(
portal_type='Business Template', portal_type='Business Template',
title='test_bt', title='test_bt_%s' % self.id(),
template_tool_id_list=('dummy_type_provider', ), template_tool_id_list=('dummy_type_provider', ),
template_portal_type_id_list=('Dummy Type',), template_portal_type_id_list=('Dummy Type',),
template_portal_type_role_list=('Dummy Type', ), template_portal_type_role_list=('Dummy Type', ),
...@@ -6473,7 +6473,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6473,7 +6473,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent( bt = self.portal.portal_templates.newContent(
portal_type='Business Template', portal_type='Business Template',
title='test_bt', title='test_bt_%s' % self.id(),
template_tool_id_list=('dummy_type_provider', ),) template_tool_id_list=('dummy_type_provider', ),)
self.tic() self.tic()
bt.build() bt.build()
...@@ -6506,7 +6506,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6506,7 +6506,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# contain type_provider. # contain type_provider.
bt = self.portal.portal_templates.newContent( bt = self.portal.portal_templates.newContent(
portal_type='Business Template', portal_type='Business Template',
title='test_bt',) title='test_bt_%s' % self.id(),)
self.tic() self.tic()
bt.build() bt.build()
self.tic() self.tic()
...@@ -6536,7 +6536,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6536,7 +6536,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent( bt = self.portal.portal_templates.newContent(
portal_type='Business Template', portal_type='Business Template',
title='test_bt', title='test_bt_%s' % self.id(),
template_action_path_list=( template_action_path_list=(
'portal_actions | test_global_action',),) 'portal_actions | test_global_action',),)
self.tic() self.tic()
...@@ -6583,7 +6583,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6583,7 +6583,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent( bt = self.portal.portal_templates.newContent(
portal_type='Business Template', portal_type='Business Template',
title='test_bt', title='test_bt_%s' % self.id(),
template_path_list=( template_path_list=(
'exported_path',)) 'exported_path',))
self.tic() self.tic()
......
test_bt test_167_InstanceAndRelatedClassDefinedInSameBT
\ No newline at end of file \ No newline at end of file
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