Fix broken testcase; Split test-toctree-maxdepth from test-tocdepth

This commit is contained in:
Takeshi KOMIYA 2016-01-06 09:51:34 +09:00
parent 924f65d737
commit 26e29de904
7 changed files with 73 additions and 3 deletions

View File

@ -3,7 +3,6 @@ test-tocdepth
.. toctree::
:numbered:
:maxdepth: 2
foo
bar

View File

@ -0,0 +1,27 @@
:tocdepth: 2
===
Bar
===
should be 2
Bar A
=====
should be 2.1
.. toctree::
baz
Bar B
=====
should be 2.2
Bar B1
------
should be 2.2.1

View File

@ -0,0 +1,5 @@
Baz A
-----
should be 2.1.1

View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
master_doc = 'index'
html_theme = 'classic'

View File

@ -0,0 +1,26 @@
===
Foo
===
should be 1
Foo A
=====
should be 1.1
Foo A1
------
should be 1.1.1
Foo B
=====
should be 1.2
Foo B1
------
should be 1.2.1

View File

@ -0,0 +1,9 @@
test-toctree-max-depth
======================
.. toctree::
:numbered:
:maxdepth: 2
foo
bar

View File

@ -430,7 +430,7 @@ def test_latex_logo_if_not_found(app, status, warning):
assert isinstance(exc, SphinxError)
@with_app(buildername='latex', testroot='tocdepth',
@with_app(buildername='latex', testroot='toctree-maxdepth',
confoverrides={'latex_documents': [
('index', 'SphinxTests.tex', 'Sphinx Tests Documentation',
'Georg Brandl', 'manual'),
@ -444,7 +444,7 @@ def test_toctree_maxdepth_manual(app, status, warning):
assert '\\setcounter{tocdepth}{1}' in result
@with_app(buildername='latex', testroot='tocdepth',
@with_app(buildername='latex', testroot='toctree-maxdepth',
confoverrides={'latex_documents': [
('index', 'SphinxTests.tex', 'Sphinx Tests Documentation',
'Georg Brandl', 'howto'),