Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #58 from pfultz2/nester-header-block
Browse files Browse the repository at this point in the history
Add test for header nested in a block
  • Loading branch information
ericholscher committed Nov 2, 2016
2 parents 8ae002b + 6a22f6b commit 81d7c6f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/sphinx_nested_header_block/conf.py
Original file line number Diff line number Diff line change
@@ -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'
1 change: 1 addition & 0 deletions tests/sphinx_nested_header_block/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> # Header
9 changes: 9 additions & 0 deletions tests/test_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ def test_integration(self):
'<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):

def test_integration(self):
Expand Down

0 comments on commit 81d7c6f

Please sign in to comment.