diff options
Diffstat (limited to 'tests/admin_docs')
| -rw-r--r-- | tests/admin_docs/test_views.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index 7969f6cd42..bf469181b3 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -240,6 +240,20 @@ class TestModelDetailView(TestDataMixin, AdminDocsTestCase): reverse("django-admindocs-models-detail", args=["admin_docs", "Person"]) ) + def test_table_headers(self): + tests = [ + ("Method", 1), + ("Arguments", 1), + ("Description", 2), + ("Field", 1), + ("Type", 1), + ("Method", 1), + ] + for table_header, count in tests: + self.assertContains( + self.response, f'<th scope="col">{table_header}</th>', count=count + ) + def test_method_excludes(self): """ Methods that begin with strings defined in |
