diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-06-23 20:22:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-23 20:22:59 +0200 |
| commit | 083bfca6b6c00d0f45837a65c2db721eaf46bc07 (patch) | |
| tree | ee2c63caee6588c949e68e6eda428da525c4b8da /tests/check_framework | |
| parent | c627226d05dd52aef59447dcfb29cec2c2b11b8a (diff) | |
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 004b4620f6f4ad87261e149898940f2dcd5757ef.
Diffstat (limited to 'tests/check_framework')
| -rw-r--r-- | tests/check_framework/test_templates.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/check_framework/test_templates.py b/tests/check_framework/test_templates.py index 352a017e55..439097f1e1 100644 --- a/tests/check_framework/test_templates.py +++ b/tests/check_framework/test_templates.py @@ -161,6 +161,19 @@ class CheckTemplateTagLibrariesWithSameName(SimpleTestCase): @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"] + ) def test_template_tags_with_same_library_name_and_module_name(self): with self.settings( TEMPLATES=[ |
