Commit c02d7db4 authored by Jérome Perrin's avatar Jérome Perrin

move DummyTranslationService in ERP5Type.tests.utils


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17852 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3714fd86
......@@ -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.
"""
......
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