diff options
Diffstat (limited to '')
-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) |