diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:20:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:20:58 +0000 |
commit | 5bb0bb4be543fd5eca41673696a62ed80d493591 (patch) | |
tree | ad2c464f140e86c7f178a6276d7ea4a93e3e6c92 /tests/test_toctree.py | |
parent | Adding upstream version 7.2.6. (diff) | |
download | sphinx-upstream/7.3.7.tar.xz sphinx-upstream/7.3.7.zip |
Adding upstream version 7.3.7.upstream/7.3.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_toctree.py')
-rw-r--r-- | tests/test_toctree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_toctree.py b/tests/test_toctree.py index 39d0916..e59085d 100644 --- a/tests/test_toctree.py +++ b/tests/test_toctree.py @@ -6,7 +6,7 @@ import pytest @pytest.mark.sphinx(testroot='toctree-glob') def test_relations(app, status, warning): - app.builder.build_all() + app.build(force_all=True) assert app.builder.relations['index'] == [None, None, 'foo'] assert app.builder.relations['foo'] == ['index', 'index', 'bar/index'] assert app.builder.relations['bar/index'] == ['index', 'foo', 'bar/bar_1'] @@ -23,7 +23,7 @@ def test_relations(app, status, warning): @pytest.mark.sphinx('singlehtml', testroot='toctree-empty') def test_singlehtml_toctree(app, status, warning): - app.builder.build_all() + app.build(force_all=True) try: app.builder._get_local_toctree('index') except AttributeError: @@ -36,4 +36,4 @@ def test_numbered_toctree(app, status, warning): index = (app.srcdir / 'index.rst').read_text(encoding='utf8') index = re.sub(':numbered:.*', ':numbered: 1', index) (app.srcdir / 'index.rst').write_text(index, encoding='utf8') - app.builder.build_all() + app.build(force_all=True) |