Fixed isolation of i18n.tests.FormattingTests.test_get_custom_format().
This commit is contained in:
parent
90916f050c
commit
ac2e6e6869
|
@ -1254,6 +1254,7 @@ class FormattingTests(SimpleTestCase):
|
|||
self.assertEqual(get_format('DEBUG'), 'DEBUG')
|
||||
|
||||
def test_get_custom_format(self):
|
||||
reset_format_cache()
|
||||
with self.settings(FORMAT_MODULE_PATH='i18n.other.locale'):
|
||||
with translation.override('fr', deactivate=True):
|
||||
self.assertEqual('d/m/Y CUSTOM', get_format('CUSTOM_DAY_FORMAT'))
|
||||
|
|
Loading…
Reference in New Issue