summaryrefslogtreecommitdiff
path: root/tests/check_framework/template_test_apps
diff options
context:
space:
mode:
authorShreya Bamne <shreya.bamne@gmail.com>2021-08-03 15:20:49 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-10-20 11:15:47 +0200
commit004b4620f6f4ad87261e149898940f2dcd5757ef (patch)
tree233f505d749bbd26208bc5b6236df629942ec5fe /tests/check_framework/template_test_apps
parentb98394fa62753c867a287c2839696695557281a5 (diff)
Fixed #32987 -- Added system check for template tag modules with the same name.
Co-authored-by: Daniel Fairhead <daniel@dev.ngo>
Diffstat (limited to 'tests/check_framework/template_test_apps')
-rw-r--r--tests/check_framework/template_test_apps/__init__.py0
-rw-r--r--tests/check_framework/template_test_apps/different_tags_app/__init__.py0
-rw-r--r--tests/check_framework/template_test_apps/different_tags_app/apps.py5
-rw-r--r--tests/check_framework/template_test_apps/different_tags_app/templatetags/__init__.py0
-rw-r--r--tests/check_framework/template_test_apps/different_tags_app/templatetags/different_tags.py3
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_1/__init__.py0
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_1/apps.py5
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_1/templatetags/__init__.py0
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_1/templatetags/same_tags.py3
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_2/__init__.py0
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_2/apps.py5
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_2/templatetags/__init__.py0
-rw-r--r--tests/check_framework/template_test_apps/same_tags_app_2/templatetags/same_tags.py3
13 files changed, 24 insertions, 0 deletions
diff --git a/tests/check_framework/template_test_apps/__init__.py b/tests/check_framework/template_test_apps/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/check_framework/template_test_apps/__init__.py
diff --git a/tests/check_framework/template_test_apps/different_tags_app/__init__.py b/tests/check_framework/template_test_apps/different_tags_app/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/check_framework/template_test_apps/different_tags_app/__init__.py
diff --git a/tests/check_framework/template_test_apps/different_tags_app/apps.py b/tests/check_framework/template_test_apps/different_tags_app/apps.py
new file mode 100644
index 0000000000..90d54b3d50
--- /dev/null
+++ b/tests/check_framework/template_test_apps/different_tags_app/apps.py
@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class DifferentTagsAppAppConfig(AppConfig):
+ name = 'check_framework.template_test_apps.different_tags_app'
diff --git a/tests/check_framework/template_test_apps/different_tags_app/templatetags/__init__.py b/tests/check_framework/template_test_apps/different_tags_app/templatetags/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/check_framework/template_test_apps/different_tags_app/templatetags/__init__.py
diff --git a/tests/check_framework/template_test_apps/different_tags_app/templatetags/different_tags.py b/tests/check_framework/template_test_apps/different_tags_app/templatetags/different_tags.py
new file mode 100644
index 0000000000..9bec93d8e5
--- /dev/null
+++ b/tests/check_framework/template_test_apps/different_tags_app/templatetags/different_tags.py
@@ -0,0 +1,3 @@
+from django.template import Library
+
+register = Library()
diff --git a/tests/check_framework/template_test_apps/same_tags_app_1/__init__.py b/tests/check_framework/template_test_apps/same_tags_app_1/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_1/__init__.py
diff --git a/tests/check_framework/template_test_apps/same_tags_app_1/apps.py b/tests/check_framework/template_test_apps/same_tags_app_1/apps.py
new file mode 100644
index 0000000000..44149177a0
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_1/apps.py
@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class SameTagsApp1AppConfig(AppConfig):
+ name = 'check_framework.template_test_apps.same_tags_app_1'
diff --git a/tests/check_framework/template_test_apps/same_tags_app_1/templatetags/__init__.py b/tests/check_framework/template_test_apps/same_tags_app_1/templatetags/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_1/templatetags/__init__.py
diff --git a/tests/check_framework/template_test_apps/same_tags_app_1/templatetags/same_tags.py b/tests/check_framework/template_test_apps/same_tags_app_1/templatetags/same_tags.py
new file mode 100644
index 0000000000..9bec93d8e5
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_1/templatetags/same_tags.py
@@ -0,0 +1,3 @@
+from django.template import Library
+
+register = Library()
diff --git a/tests/check_framework/template_test_apps/same_tags_app_2/__init__.py b/tests/check_framework/template_test_apps/same_tags_app_2/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_2/__init__.py
diff --git a/tests/check_framework/template_test_apps/same_tags_app_2/apps.py b/tests/check_framework/template_test_apps/same_tags_app_2/apps.py
new file mode 100644
index 0000000000..d90c800d1f
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_2/apps.py
@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class SameTagsApp2AppConfig(AppConfig):
+ name = 'check_framework.template_test_apps.same_tags_app_2'
diff --git a/tests/check_framework/template_test_apps/same_tags_app_2/templatetags/__init__.py b/tests/check_framework/template_test_apps/same_tags_app_2/templatetags/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_2/templatetags/__init__.py
diff --git a/tests/check_framework/template_test_apps/same_tags_app_2/templatetags/same_tags.py b/tests/check_framework/template_test_apps/same_tags_app_2/templatetags/same_tags.py
new file mode 100644
index 0000000000..9bec93d8e5
--- /dev/null
+++ b/tests/check_framework/template_test_apps/same_tags_app_2/templatetags/same_tags.py
@@ -0,0 +1,3 @@
+from django.template import Library
+
+register = Library()