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

Fixed #33628 -- Ignored directories with empty names in autoreloader check for template changes.

Regression in 68357b2ca9.
This commit is contained in:
Manel Clos
2022-04-09 11:36:26 +02:00
committed by Mariusz Felisiak
parent 0b31e02487
commit 62739b6e26
4 changed files with 28 additions and 4 deletions

View File

@@ -81,6 +81,17 @@ class TemplateReloadTests(SimpleTestCase):
autoreload.reset_loaders()
self.assertEqual(mock_reset.call_count, 2)
@override_settings(
TEMPLATES=[
{
"DIRS": [""],
"BACKEND": "django.template.backends.django.DjangoTemplates",
}
]
)
def test_template_dirs_ignore_empty_path(self):
self.assertEqual(autoreload.get_template_directories(), set())
@override_settings(
TEMPLATES=[
{