summaryrefslogtreecommitdiff
path: root/tests/i18n/contenttypes/tests.py
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2013-05-19 11:44:46 +0200
committerŁukasz Langa <lukasz@langa.pl>2013-05-19 12:05:57 +0200
commite80636b6683893d40e171745a4ef0a2f1a09cc82 (patch)
tree2205440779141dfbc3af967097335aa403a5accc /tests/i18n/contenttypes/tests.py
parent413735b239239bc8ff38ee893e8448daf9b2bff6 (diff)
Added TransRealMixin to fix i18n global state pollution in the test suite
Diffstat (limited to 'tests/i18n/contenttypes/tests.py')
-rw-r--r--tests/i18n/contenttypes/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/i18n/contenttypes/tests.py b/tests/i18n/contenttypes/tests.py
index 5e8a9823e1..cbac9ec5da 100644
--- a/tests/i18n/contenttypes/tests.py
+++ b/tests/i18n/contenttypes/tests.py
@@ -10,6 +10,8 @@ from django.utils._os import upath
from django.utils import six
from django.utils import translation
+from i18n import TransRealMixin
+
@override_settings(
USE_I18N=True,
@@ -22,7 +24,7 @@ from django.utils import translation
('fr', 'French'),
),
)
-class ContentTypeTests(TestCase):
+class ContentTypeTests(TransRealMixin, TestCase):
def test_verbose_name(self):
company_type = ContentType.objects.get(app_label='i18n', model='company')
with translation.override('en'):