mirror of
https://github.com/Hopiu/django.git
synced 2026-04-08 17:11:06 +00:00
Fixed typos in test names.
This commit is contained in:
parent
ed3c59097a
commit
08a4ee0651
2 changed files with 2 additions and 2 deletions
|
|
@ -1801,7 +1801,7 @@ class NonDjangoLanguageTests(SimpleTestCase):
|
|||
self.assertEqual(gettext("year"), "reay")
|
||||
|
||||
@override_settings(USE_I18N=True)
|
||||
def test_check_for_langauge(self):
|
||||
def test_check_for_language(self):
|
||||
with tempfile.TemporaryDirectory() as app_dir:
|
||||
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()
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ class SetLanguageTests(TestCase):
|
|||
self.assertEqual(response.url, '/')
|
||||
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 = (
|
||||
'The user language will no longer be stored in request.session '
|
||||
'in Django 4.0. Read it from '
|
||||
|
|
|
|||
Loading…
Reference in a new issue