From c02d7db4bf205e14bcb791a0e8bcc7a209b92df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 28 Nov 2007 09:57:45 +0000 Subject: [PATCH] move DummyTranslationService in ERP5Type.tests.utils git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17852 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Core.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/product/ERP5/tests/testERP5Core.py b/product/ERP5/tests/testERP5Core.py index f0102ce60c..610f0e8eb4 100644 --- a/product/ERP5/tests/testERP5Core.py +++ b/product/ERP5/tests/testERP5Core.py @@ -35,20 +35,12 @@ from Products.PageTemplates.GlobalTranslationService import \ setGlobalTranslationService from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase +from Products.ERP5Type.tests.utils import DummyTranslationService HTTP_OK = 200 HTTP_UNAUTHORIZED = 401 HTTP_REDIRECT = 302 -class DummyTranslationService: - """A dummy translation service where you can access translated msgids and - mappings in _translated. - """ - _translated = {} - def translate(self, domain, msgid, mapping=None, *args, **kw): - self._translated.setdefault(domain, []).append((msgid, mapping)) - return msgid - class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): """Test for erp5_core business template. """ -- 2.30.9