mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
from unittest import mock
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
@@ -52,3 +53,8 @@ class LocaleRegexDescriptorTests(SimpleTestCase):
|
||||
|
||||
def test_access_locale_regex_descriptor(self):
|
||||
self.assertIsInstance(RegexPattern.regex, LocaleRegexDescriptor)
|
||||
|
||||
|
||||
@override_settings(LOCALE_PATHS=[Path(here) / 'translations' / 'locale'])
|
||||
class LocaleRegexDescriptorPathLibTests(LocaleRegexDescriptorTests):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user