summaryrefslogtreecommitdiff
path: root/tests/admin_docs/test_views.py
diff options
context:
space:
mode:
authorKris Avi <kris@krisavi.com>2016-10-26 20:26:36 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-29 10:28:00 +0100
commitb7154f811f0c01757346f88ee006c8f2034acee3 (patch)
tree0572e3885743457897b330f48af8cb260805f1f9 /tests/admin_docs/test_views.py
parent1df8983aa3b51bd37a5b9acf92475ad3a9180fe4 (diff)
Fixed #24128 -- Made admindocs TemplateDetailView respect template_loaders.
Co-Authored-By: Author: Alexander Lazarević <laza@e11bits.com>
Diffstat (limited to 'tests/admin_docs/test_views.py')
-rw-r--r--tests/admin_docs/test_views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py
index bf469181b3..ef7fde1bf9 100644
--- a/tests/admin_docs/test_views.py
+++ b/tests/admin_docs/test_views.py
@@ -138,6 +138,12 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase):
html=True,
)
+ def test_template_detail_loader(self):
+ response = self.client.get(
+ reverse("django-admindocs-templates", args=["view_for_loader_test.html"])
+ )
+ self.assertContains(response, "view_for_loader_test.html</code></li>")
+
def test_missing_docutils(self):
utils.docutils_is_available = False
try: