mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #21685 -- Displayed app verbose name in admindocs model index
This commit is contained in:
parent
edecbb551b
commit
4cf82e5bcf
2 changed files with 9 additions and 5 deletions
|
@ -81,7 +81,11 @@ class AdminDocViewTests(TestCase):
|
|||
|
||||
def test_model_index(self):
|
||||
response = self.client.get(reverse('django-admindocs-models-index'))
|
||||
self.assertContains(response, '<h2 id="app-auth">Auth</h2>', html=True)
|
||||
self.assertContains(
|
||||
response,
|
||||
'<h2 id="app-auth">Authentication and Authorization (django.contrib.auth)</h2>',
|
||||
html=True
|
||||
)
|
||||
|
||||
def test_template_detail(self):
|
||||
response = self.client.get(reverse('django-admindocs-templates',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue