diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/i18n/contenttypes/tests.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/i18n/contenttypes/tests.py')
| -rw-r--r-- | tests/i18n/contenttypes/tests.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/i18n/contenttypes/tests.py b/tests/i18n/contenttypes/tests.py index d23e2bdf56..22bbb5d834 100644 --- a/tests/i18n/contenttypes/tests.py +++ b/tests/i18n/contenttypes/tests.py @@ -8,18 +8,18 @@ from django.utils import translation @override_settings( USE_I18N=True, LOCALE_PATHS=[ - os.path.join(os.path.dirname(__file__), 'locale'), + os.path.join(os.path.dirname(__file__), "locale"), ], - LANGUAGE_CODE='en', + LANGUAGE_CODE="en", LANGUAGES=[ - ('en', 'English'), - ('fr', 'French'), + ("en", "English"), + ("fr", "French"), ], ) class ContentTypeTests(TestCase): def test_verbose_name(self): - company_type = ContentType.objects.get(app_label='i18n', model='company') - with translation.override('en'): - self.assertEqual(str(company_type), 'i18n | Company') - with translation.override('fr'): - self.assertEqual(str(company_type), 'i18n | Société') + company_type = ContentType.objects.get(app_label="i18n", model="company") + with translation.override("en"): + self.assertEqual(str(company_type), "i18n | Company") + with translation.override("fr"): + self.assertEqual(str(company_type), "i18n | Société") |
