mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixes #30342 -- Removed a system check for LANGUAGES_BIDI setting.
This partly reverts commit 4400d8296d.
This commit is contained in:
committed by
Mariusz Felisiak
parent
0c916255eb
commit
80482e9249
@@ -80,15 +80,7 @@ class TranslationCheckTests(SimpleTestCase):
|
||||
'You have provided a value for the LANGUAGE_CODE setting that is '
|
||||
'not in the LANGUAGES setting.'
|
||||
)
|
||||
with self.settings(LANGUAGE_CODE='fr', LANGUAGES=[('en', 'English')], LANGUAGES_BIDI=[]):
|
||||
with self.settings(LANGUAGE_CODE='fr', LANGUAGES=[('en', 'English')]):
|
||||
self.assertEqual(check_language_settings_consistent(None), [
|
||||
Error(msg, id='translation.E004'),
|
||||
])
|
||||
msg = (
|
||||
'You have provided values in the LANGUAGES_BIDI setting that are '
|
||||
'not in the LANGUAGES setting.'
|
||||
)
|
||||
with self.settings(LANGUAGE_CODE='en', LANGUAGES=[('en', 'English')], LANGUAGES_BIDI=['he']):
|
||||
self.assertEqual(check_language_settings_consistent(None), [
|
||||
Error(msg, id='translation.E005'),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user