Skip to content

Commit

Permalink
Use app.build(force_all=True)
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 18, 2025
1 parent 7227b09 commit 4b1d64d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_domains/test_domain_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_extensions/test_ext_viewcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def find_source(app, modname):

@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(
Expand Down

0 comments on commit 4b1d64d

Please sign in to comment.