1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[4.1.x] Fixed #33800 -- Fixed system check for the same template tag module in installed apps and template tag libraries.

Thanks Claude Paroz for the report.

Regression in 004b4620f6.
Backport of 083bfca6b6 from main
This commit is contained in:
Mariusz Felisiak
2022-06-23 20:22:59 +02:00
parent 531c96de34
commit b37a4affcd
2 changed files with 17 additions and 4 deletions

View File

@@ -158,6 +158,19 @@ class CheckTemplateTagLibrariesWithSameName(SimpleTestCase):
[self.error_same_tags],
)
@override_settings(
INSTALLED_APPS=["check_framework.template_test_apps.same_tags_app_1"]
)
def test_template_tags_same_library_in_installed_apps_libraries(self):
with self.settings(
TEMPLATES=[
self.get_settings(
"same_tags", "same_tags_app_1.templatetags.same_tags"
),
]
):
self.assertEqual(check_for_template_tags_with_the_same_name(None), [])
@override_settings(
INSTALLED_APPS=["check_framework.template_test_apps.same_tags_app_1"]
)