Commit 5ee17dd5 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 fbd88a68
......@@ -5614,7 +5614,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
def test_getInstalledBusinessTemplate_provision(self):
test_bt = self.portal.portal_templates.newContent(
portal_type='Business Template',
title='test_bt',
title='test_bt_%s' % self.id(),
provision_list=['erp5_test_bt_%s' % self.id()])
test_bt.install()
self.tic()
......@@ -6406,7 +6406,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# check the previously existing instance now behaves as the overriden class
self.assertTrue(getattr(portal.another_file, 'isClassOverriden', False))
# test uninstall is effective
self.uninstallBusinessTemplate('test_bt')
self.uninstallBusinessTemplate('test_167_InstanceAndRelatedClassDefinedInSameBT')
# check both File instances no longer behave like being overriden
self.assertFalse(getattr(portal.another_file, 'isClassOverriden', False))
......@@ -6448,7 +6448,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent(
portal_type='Business Template',
title='test_bt',
title='test_bt_%s' % self.id(),
template_tool_id_list=('dummy_type_provider', ),
template_portal_type_id_list=('Dummy Type',),
template_portal_type_role_list=('Dummy Type', ),
......@@ -6546,7 +6546,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent(
portal_type='Business Template',
title='test_bt',
title='test_bt_%s' % self.id(),
template_tool_id_list=('dummy_type_provider', ),)
self.tic()
bt.build()
......@@ -6579,7 +6579,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# contain type_provider.
bt = self.portal.portal_templates.newContent(
portal_type='Business Template',
title='test_bt',)
title='test_bt_%s' % self.id(),)
self.tic()
bt.build()
self.tic()
......@@ -6609,7 +6609,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent(
portal_type='Business Template',
title='test_bt',
title='test_bt_%s' % self.id(),
template_action_path_list=(
'portal_actions | test_global_action',),)
self.tic()
......@@ -6656,7 +6656,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt = self.portal.portal_templates.newContent(
portal_type='Business Template',
title='test_bt',
title='test_bt_%s' % self.id(),
template_path_list=(
'exported_path',))
self.tic()
......
test_bt
\ No newline at end of file
test_167_InstanceAndRelatedClassDefinedInSameBT
\ 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