Commits

Andrii Kostenko committed f6f282e

english translation

  • Participants
  • Parent commits 97726d6

Comments (0)

Files changed (2)

File registration/tests/templates/registration/activation_complete.html

+activation completed!

File registration/tests/views.py

 from django.core import mail
 from django.core.urlresolvers import reverse
 from django.test import TestCase
-
+from django.utils import translation
 
 from registration import forms
 from registration.models import RegistrationProfile
 
     """
     urls = 'registration.tests.urls'
-    _settings_attributes = dict(
-        TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',),
-        TEMPLATE_DIRS=(os.path.join(os.path.dirname(__file__), 'templates'),),
-        JINJA2_TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',),
-        JINJA2_DISABLED_APPS=('registration', 'debug_toolbar'),
-        DEBUG_TOOLBAR_CONFIG={'SHOW_TOOLBAR_CALLBACK': lambda F: False},
-        LANGUAGES = (('en', 'English'),),
-        LANGUAGE_CODE= 'en'
-    )
+    _settings_attributes = {
+        'TEMPLATE_LOADERS': ('django.template.loaders.filesystem.Loader',),
+        'TEMPLATE_DIRS': (os.path.join(os.path.dirname(__file__), 'templates'),),
+        'JINJA2_TEMPLATE_LOADERS': ('django.template.loaders.filesystem.Loader',),
+        'JINJA2_DISABLED_APPS': ('registration', 'debug_toolbar'),
+        'DEBUG_TOOLBAR_CONFIG': {'SHOW_TOOLBAR_CALLBACK': lambda F: False},
+        'LANGUAGES': (('en', 'English'),),
+        'LANGUAGE_CODE': 'en'
+    }
 
     def setUp(self):
         """
 
         if self.old_activation is None:
             settings.ACCOUNT_ACTIVATION_DAYS = 7 # pragma: no cover
+        translation.activate('en')
 
     def tearDown(self):
         """