Use `app.build(force_all=True)`

This commit is contained in:
Adam Turner 2025-01-18 18:38:59 +00:00
parent 7227b09a2d
commit 4b1d64d1e5
2 changed files with 2 additions and 2 deletions

View File

@ -1826,7 +1826,7 @@ def test_domain_cpp_build_field_role(app):
@pytest.mark.sphinx('html', testroot='domain-cpp', confoverrides={'nitpicky': True})
def test_domain_cpp_build_operator_lookup(app):
app.builder.build_all()
app.build(force_all=True)
ws = filter_warnings(app.warning, 'operator-lookup')
assert len(ws) == 5
# TODO: the first one should not happen

View File

@ -173,7 +173,7 @@ def test_local_source_files(app):
@pytest.mark.sphinx('html', testroot='ext-viewcode-find-package', freshenv=True)
def test_find_local_package_import_path(app, status, warning):
app.builder.build_all()
app.build(force_all=True)
result = (app.outdir / 'index.html').read_text(encoding='utf8')
count_func1 = result.count(