Fixed typos in test names.
This commit is contained in:
parent
ed3c59097a
commit
08a4ee0651
|
@ -1801,7 +1801,7 @@ class NonDjangoLanguageTests(SimpleTestCase):
|
||||||
self.assertEqual(gettext("year"), "reay")
|
self.assertEqual(gettext("year"), "reay")
|
||||||
|
|
||||||
@override_settings(USE_I18N=True)
|
@override_settings(USE_I18N=True)
|
||||||
def test_check_for_langauge(self):
|
def test_check_for_language(self):
|
||||||
with tempfile.TemporaryDirectory() as app_dir:
|
with tempfile.TemporaryDirectory() as app_dir:
|
||||||
os.makedirs(os.path.join(app_dir, 'locale', 'dummy_Lang', 'LC_MESSAGES'))
|
os.makedirs(os.path.join(app_dir, 'locale', 'dummy_Lang', 'LC_MESSAGES'))
|
||||||
open(os.path.join(app_dir, 'locale', 'dummy_Lang', 'LC_MESSAGES', 'django.mo'), 'w').close()
|
open(os.path.join(app_dir, 'locale', 'dummy_Lang', 'LC_MESSAGES', 'django.mo'), 'w').close()
|
||||||
|
|
|
@ -157,7 +157,7 @@ class SetLanguageTests(TestCase):
|
||||||
self.assertEqual(response.url, '/')
|
self.assertEqual(response.url, '/')
|
||||||
self.assertEqual(self.client.cookies[settings.LANGUAGE_COOKIE_NAME].value, lang_code)
|
self.assertEqual(self.client.cookies[settings.LANGUAGE_COOKIE_NAME].value, lang_code)
|
||||||
|
|
||||||
def test_session_langauge_deprecation(self):
|
def test_session_language_deprecation(self):
|
||||||
msg = (
|
msg = (
|
||||||
'The user language will no longer be stored in request.session '
|
'The user language will no longer be stored in request.session '
|
||||||
'in Django 4.0. Read it from '
|
'in Django 4.0. Read it from '
|
||||||
|
|
Loading…
Reference in New Issue