Commit 23b67f3b authored by Nicolas Dumazet's avatar Nicolas Dumazet

instanciating directly a class has no sense anymore. Use portal types.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef8b594a
......@@ -59,9 +59,6 @@ from Persistence import Persistent
WORKFLOW_TYPE = 'erp5_workflow'
class DummyTypeProvider(TypeProvider):
id = 'dummy_type_provider'
from Products.MimetypesRegistry.common import MimeTypeException
from Products.PortalTransforms.Transform import Transform
Transform_tr_init = Transform._tr_init
......@@ -6881,7 +6878,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.assertEquals(getBusinessTemplateUrl(url_list[4:], not_exist_bt5), None)
def test_type_provider(self):
self.portal._setObject('dummy_type_provider', DummyTypeProvider())
self.portal.newContent(id='dummy_type_provider', portal_type="Types Tool")
type_provider = self.portal.dummy_type_provider
types_tool = self.portal.portal_types
......@@ -7005,7 +7002,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.assertFalse('dummy_type_provider' in types_tool.type_provider_list)
def test_type_provider_2(self):
self.portal._setObject('dummy_type_provider', DummyTypeProvider())
self.portal.newContent(id='dummy_type_provider', portal_type="Types Tool")
type_provider = self.portal.dummy_type_provider
types_tool = self.portal.portal_types
......
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