summaryrefslogtreecommitdiff
path: root/tests/admin_docs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_docs')
-rw-r--r--tests/admin_docs/templates/view_for_loader_test.html8
-rw-r--r--tests/admin_docs/test_views.py6
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/admin_docs/templates/view_for_loader_test.html b/tests/admin_docs/templates/view_for_loader_test.html
new file mode 100644
index 0000000000..12130c54cd
--- /dev/null
+++ b/tests/admin_docs/templates/view_for_loader_test.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Template for Test</title>
+</head>
+<body></body>
+</html>
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: