File: test_root_doc.py

package info (click to toggle)
sphinxcontrib-bibtex 2.6.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,140 kB
  • sloc: python: 4,668; makefile: 245
file content (13 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest
import sphinx


@pytest.mark.skipif(
    sphinx.version_info < (4, 0),
    reason="root_doc only supported in sphinx 4.0 and higher",
)
@pytest.mark.sphinx("pseudoxml", testroot="root_doc")
def test_root_doc(app, warning):
    app.build()
    assert not warning.getvalue()
    assert (app.outdir / "root.pseudoxml").exists()