move no-longer-existing import locally to allow the test file to run on Zope...

move no-longer-existing import locally to allow the test file to run on Zope 2.12, although tests that need it will still fail

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30823 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 893a6bf0
...@@ -33,8 +33,6 @@ import md5 ...@@ -33,8 +33,6 @@ import md5
import transaction import transaction
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from Testing import ZopeTestCase from Testing import ZopeTestCase
from Products.PageTemplates.GlobalTranslationService import \
setGlobalTranslationService
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import DummyTranslationService from Products.ERP5Type.tests.utils import DummyTranslationService
...@@ -194,6 +192,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -194,6 +192,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
def test_allowed_content_types_translated(self): def test_allowed_content_types_translated(self):
"""Tests allowed content types from the action menu are translated""" """Tests allowed content types from the action menu are translated"""
translation_service = DummyTranslationService() translation_service = DummyTranslationService()
from Products.PageTemplates.GlobalTranslationService import \
setGlobalTranslationService
setGlobalTranslationService(translation_service) setGlobalTranslationService(translation_service)
# assumes that we can add Business Template in template tool # assumes that we can add Business Template in template tool
response = self.publish('%s/portal_templates/view' % response = self.publish('%s/portal_templates/view' %
...@@ -208,6 +208,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -208,6 +208,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
def test_jump_action_translated(self): def test_jump_action_translated(self):
"""Tests jump actions are translated""" """Tests jump actions are translated"""
translation_service = DummyTranslationService() translation_service = DummyTranslationService()
from Products.PageTemplates.GlobalTranslationService import \
setGlobalTranslationService
setGlobalTranslationService(translation_service) setGlobalTranslationService(translation_service)
# adds a new jump action to Template Tool portal type # adds a new jump action to Template Tool portal type
self.getTypesTool().getTypeInfo('Template Tool').newContent( self.getTypesTool().getTypeInfo('Template Tool').newContent(
......
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