mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #29983 -- Added support for using pathlib.Path in all settings.
This commit is contained in:
parent
367634f976
commit
77aa74cb70
18 changed files with 118 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue