mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Fixed #25667 -- Fixed admindocs initial_header_level.
This commit is contained in:
parent
0825f77f76
commit
4d0f8831a7
2 changed files with 6 additions and 1 deletions
|
|
@ -485,3 +485,8 @@ class TestUtils(AdminDocsTestCase):
|
|||
'</p>\n'
|
||||
)
|
||||
self.assertHTMLEqual(description_output, description_rendered)
|
||||
|
||||
def test_initial_header_level(self):
|
||||
header = 'should be h3...\n\nHeader\n------\n'
|
||||
output = utils.parse_rst(header, 'header')
|
||||
self.assertIn('<h3>Header</h3>', output)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue