Add another test for empty toctree

This commit is contained in:
Anthony Johnson 2017-03-29 00:52:35 -07:00
parent 3390b7f499
commit beee9e80cd
No known key found for this signature in database
GPG Key ID: C5C79D82F922D604
3 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
{# This will call toctree unconditionally, whether there is a local or global toc #}
{{ toctree() }}

View File

@ -3,3 +3,4 @@
master_doc = 'index'
html_theme = 'classic'
exclude_patterns = ['_build']
templates_path = ['_templates']

View File

@ -30,7 +30,6 @@ def test_relations(app, status, warning):
@pytest.mark.sphinx('singlehtml', testroot='toctree-empty')
def test_singlehtml_toctree(app, status, warning):
docname = 'index'
app.builder.build_all()
try:
app.builder._get_local_toctree('index')