mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed missing admindocs' site_header
This commit is contained in:
parent
3ac823fc5b
commit
48ce09f2f6
2 changed files with 9 additions and 1 deletions
|
@ -25,6 +25,9 @@ class AdminDocViewTests(TestCase):
|
|||
self.client.login(username='super', password='secret')
|
||||
response = self.client.get(reverse('django-admindocs-docroot'))
|
||||
self.assertContains(response, '<h1>Documentation</h1>', html=True)
|
||||
self.assertContains(response,
|
||||
'<h1 id="site-name"><a href="/admin/">Django '
|
||||
'administration</a></h1>')
|
||||
|
||||
def test_bookmarklets(self):
|
||||
response = self.client.get(reverse('django-admindocs-bookmarklets'))
|
||||
|
@ -80,6 +83,9 @@ class AdminDocViewTests(TestCase):
|
|||
'<h3>The admin documentation system requires Python\'s '
|
||||
'<a href="http://docutils.sf.net/">docutils</a> library.</h3>',
|
||||
html=True)
|
||||
self.assertContains(response,
|
||||
'<h1 id="site-name"><a href="/admin/">Django '
|
||||
'administration</a></h1>')
|
||||
finally:
|
||||
utils.docutils_is_available = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue