diff options
author | Martin Liška <mliska@suse.cz> | 2023-04-06 23:33:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 22:33:20 +0100 |
commit | f25a36d0563b1beda3d2bad76e1b10dac4471512 (patch) | |
tree | 30908349289bb41282f1fb72959ab6c49a9e6893 | |
parent | a80e3fd3771038f6bd1069a6f5d18b13398b1faa (diff) | |
download | sphinx-git-f25a36d0563b1beda3d2bad76e1b10dac4471512.tar.gz |
Fix instability in ``test_build_epub`` (#11296)
Some tests need ``app.builder.build_all`` in order to have complete rebuild.
-rw-r--r-- | tests/test_build_epub.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_build_epub.py b/tests/test_build_epub.py index 19c2742a1..362ae4d6a 100644 --- a/tests/test_build_epub.py +++ b/tests/test_build_epub.py @@ -60,7 +60,7 @@ class EPUBElementTree: @pytest.mark.sphinx('epub', testroot='basic') def test_build_epub(app): - app.build() + app.builder.build_all() assert (app.outdir / 'mimetype').read_text(encoding='utf8') == 'application/epub+zip' assert (app.outdir / 'META-INF' / 'container.xml').exists() @@ -277,7 +277,7 @@ def test_escaped_toc(app): @pytest.mark.sphinx('epub', testroot='basic') def test_epub_writing_mode(app): # horizontal (default) - app.build() + app.builder.build_all() # horizontal / page-progression-direction opf = EPUBElementTree.fromstring((app.outdir / 'content.opf').read_text(encoding='utf8')) @@ -367,7 +367,7 @@ def test_html_download_role(app, status, warning): @pytest.mark.sphinx('epub', testroot='toctree-duplicated') def test_duplicated_toctree_entry(app, status, warning): - app.build() + app.builder.build_all() assert 'WARNING: duplicated ToC entry found: foo.xhtml' in warning.getvalue() |