mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #29983 -- Added support for using pathlib.Path in all settings.
This commit is contained in:
committed by
Carlton Gibson
parent
367634f976
commit
77aa74cb70
@@ -227,3 +227,12 @@ class AppCompilationTest(ProjectAndAppTests):
|
||||
call_command('compilemessages', locale=[self.LOCALE], stdout=StringIO())
|
||||
self.assertTrue(os.path.exists(self.PROJECT_MO_FILE))
|
||||
self.assertTrue(os.path.exists(self.APP_MO_FILE))
|
||||
|
||||
|
||||
class PathLibLocaleCompilationTests(MessageCompilationTests):
|
||||
work_subdir = 'exclude'
|
||||
|
||||
def test_locale_paths_pathlib(self):
|
||||
with override_settings(LOCALE_PATHS=[Path(self.test_dir) / 'canned_locale']):
|
||||
call_command('compilemessages', locale=['fr'], stdout=StringIO())
|
||||
self.assertTrue(os.path.exists('canned_locale/fr/LC_MESSAGES/django.mo'))
|
||||
|
||||
Reference in New Issue
Block a user