Fixed #21685 -- Displayed app verbose name in admindocs model index

This commit is contained in:
Claude Paroz 2014-05-10 18:06:25 +02:00
parent edecbb551b
commit 4cf82e5bcf
2 changed files with 9 additions and 5 deletions

View file

@ -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',