[Erp5-report] r30823 - /erp5/trunk/products/ERP5/tests/testERP5Core.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 23 18:17:15 CET 2009
Author: leonardo
Date: Mon Nov 23 18:17:10 2009
New Revision: 30823
URL: http://svn.erp5.org?rev=30823&view=rev
Log:
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
Modified:
erp5/trunk/products/ERP5/tests/testERP5Core.py
Modified: erp5/trunk/products/ERP5/tests/testERP5Core.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Core.py?rev=30823&r1=30822&r2=30823&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Core.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Core.py [utf8] Mon Nov 23 18:17:10 2009
@@ -33,8 +33,6 @@
import transaction
from AccessControl.SecurityManagement import newSecurityManager
from Testing import ZopeTestCase
-from Products.PageTemplates.GlobalTranslationService import \
- setGlobalTranslationService
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import DummyTranslationService
@@ -194,6 +192,8 @@
def test_allowed_content_types_translated(self):
"""Tests allowed content types from the action menu are translated"""
translation_service = DummyTranslationService()
+ from Products.PageTemplates.GlobalTranslationService import \
+ setGlobalTranslationService
setGlobalTranslationService(translation_service)
# assumes that we can add Business Template in template tool
response = self.publish('%s/portal_templates/view' %
@@ -208,6 +208,8 @@
def test_jump_action_translated(self):
"""Tests jump actions are translated"""
translation_service = DummyTranslationService()
+ from Products.PageTemplates.GlobalTranslationService import \
+ setGlobalTranslationService
setGlobalTranslationService(translation_service)
# adds a new jump action to Template Tool portal type
self.getTypesTool().getTypeInfo('Template Tool').newContent(
More information about the Erp5-report
mailing list