Add test for header nested in a block

This commit is contained in:
Paul 2016-10-27 01:17:06 -05:00
parent 8ae002b040
commit 6a22f6b04b
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
from recommonmark.parser import CommonMarkParser
templates_path = ['_templates']
source_suffix = '.md'
source_parsers = { '.md': CommonMarkParser }
master_doc = 'index'
project = u'sphinxproj'
copyright = u'2015, rtfd'
author = u'rtfd'
version = '0.1'
release = '0.1'
highlight_language = 'python'
language = None
exclude_patterns = ['_build']
pygments_style = 'sphinx'
todo_include_todos = False
html_theme = 'alabaster'
html_static_path = ['_static']
htmlhelp_basename = 'sphinxproj'

View file

@ -0,0 +1 @@
> # Header

View file

@ -47,6 +47,15 @@ class IndentedCodeTests(SphinxIntegrationTests):
'<div class="highlight">' '<div class="highlight">'
) )
class NestedHeaderBlock(SphinxIntegrationTests):
def test_integration(self):
self._run_test(
'sphinx_nested_header_block',
'_build/text/index.html',
'<h1>'
)
class CustomExtensionTests(SphinxIntegrationTests): class CustomExtensionTests(SphinxIntegrationTests):
def test_integration(self): def test_integration(self):