mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix broken testcase; Split test-toctree-maxdepth from test-tocdepth
This commit is contained in:
parent
924f65d737
commit
26e29de904
@ -3,7 +3,6 @@ test-tocdepth
|
|||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:numbered:
|
:numbered:
|
||||||
:maxdepth: 2
|
|
||||||
|
|
||||||
foo
|
foo
|
||||||
bar
|
bar
|
||||||
|
27
tests/roots/test-toctree-maxdepth/bar.rst
Normal file
27
tests/roots/test-toctree-maxdepth/bar.rst
Normal 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
|
||||||
|
|
5
tests/roots/test-toctree-maxdepth/baz.rst
Normal file
5
tests/roots/test-toctree-maxdepth/baz.rst
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Baz A
|
||||||
|
-----
|
||||||
|
|
||||||
|
should be 2.1.1
|
||||||
|
|
4
tests/roots/test-toctree-maxdepth/conf.py
Normal file
4
tests/roots/test-toctree-maxdepth/conf.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
master_doc = 'index'
|
||||||
|
html_theme = 'classic'
|
26
tests/roots/test-toctree-maxdepth/foo.rst
Normal file
26
tests/roots/test-toctree-maxdepth/foo.rst
Normal 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
|
||||||
|
|
9
tests/roots/test-toctree-maxdepth/index.rst
Normal file
9
tests/roots/test-toctree-maxdepth/index.rst
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
test-toctree-max-depth
|
||||||
|
======================
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:numbered:
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
foo
|
||||||
|
bar
|
@ -430,7 +430,7 @@ def test_latex_logo_if_not_found(app, status, warning):
|
|||||||
assert isinstance(exc, SphinxError)
|
assert isinstance(exc, SphinxError)
|
||||||
|
|
||||||
|
|
||||||
@with_app(buildername='latex', testroot='tocdepth',
|
@with_app(buildername='latex', testroot='toctree-maxdepth',
|
||||||
confoverrides={'latex_documents': [
|
confoverrides={'latex_documents': [
|
||||||
('index', 'SphinxTests.tex', 'Sphinx Tests Documentation',
|
('index', 'SphinxTests.tex', 'Sphinx Tests Documentation',
|
||||||
'Georg Brandl', 'manual'),
|
'Georg Brandl', 'manual'),
|
||||||
@ -444,7 +444,7 @@ def test_toctree_maxdepth_manual(app, status, warning):
|
|||||||
assert '\\setcounter{tocdepth}{1}' in result
|
assert '\\setcounter{tocdepth}{1}' in result
|
||||||
|
|
||||||
|
|
||||||
@with_app(buildername='latex', testroot='tocdepth',
|
@with_app(buildername='latex', testroot='toctree-maxdepth',
|
||||||
confoverrides={'latex_documents': [
|
confoverrides={'latex_documents': [
|
||||||
('index', 'SphinxTests.tex', 'Sphinx Tests Documentation',
|
('index', 'SphinxTests.tex', 'Sphinx Tests Documentation',
|
||||||
'Georg Brandl', 'howto'),
|
'Georg Brandl', 'howto'),
|
||||||
|
Loading…
Reference in New Issue
Block a user