summaryrefslogtreecommitdiff
path: root/tests/admin_docs/test_views.py
diff options
context:
space:
mode:
authorPaul Donohue <git@PaulSD.com>2018-04-08 13:35:24 -0400
committerTim Graham <timograham@gmail.com>2018-04-12 13:11:08 -0400
commit33a0b7ac815588ed92dca215e153390af8bdbdda (patch)
tree151047d74bb30076489c6b1b846ede5826c161a2 /tests/admin_docs/test_views.py
parentee17bb8a67a9e7e688da6e6f4b3be1b3a69c09b0 (diff)
Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
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 be69799d70..c55891a3c0 100644
--- a/tests/admin_docs/test_views.py
+++ b/tests/admin_docs/test_views.py
@@ -51,6 +51,12 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase):
)
self.assertContains(response, 'Views by namespace test')
self.assertContains(response, 'Name: <code>test:func</code>.')
+ self.assertContains(
+ response,
+ '<h3><a href="/admindocs/views/admin_docs.views.XViewCallableObject/">'
+ '/xview/callable_object_without_xview/</a></h3>',
+ html=True,
+ )
def test_view_index_with_method(self):
"""