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:28:29 -0400 |
| commit | 979253fce9c0bb6ee484a5a786d477a47545d972 (patch) | |
| tree | b9229bf46da039bacee673dd9755c584e2be6c5c /tests/admin_docs/test_views.py | |
| parent | 8f76939f54924b01b41d4242e71ca98eb35964f2 (diff) | |
[1.11.x] Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
Backport of 33a0b7ac815588ed92dca215e153390af8bdbdda from master
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 bd483007c7..cf4f9359c7 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -54,6 +54,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, + ) @unittest.skipIf(six.PY2, "Python 2 doesn't support __qualname__.") def test_view_index_with_method(self): |
