1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #29983 -- Added support for using pathlib.Path in all settings.

This commit is contained in:
Jon Dufresne
2019-11-07 01:26:22 -08:00
committed by Carlton Gibson
parent 367634f976
commit 77aa74cb70
18 changed files with 118 additions and 10 deletions

View File

@@ -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