diff options
| author | Paul Donohue <git@PaulSD.com> | 2018-04-08 13:35:24 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-04-12 13:11:08 -0400 |
| commit | 33a0b7ac815588ed92dca215e153390af8bdbdda (patch) | |
| tree | 151047d74bb30076489c6b1b846ede5826c161a2 /tests/admin_docs/test_views.py | |
| parent | ee17bb8a67a9e7e688da6e6f4b3be1b3a69c09b0 (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.py | 6 |
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): """ |
