aboutsummaryrefslogtreecommitdiffstats
path: root/docs/check_sphinx.py
blob: c4ce031775176b418f4630756ec9a040cd76e371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest
import subprocess

def test_linkcheck(tmpdir):
    doctrees = tmpdir.join("doctrees")
    htmldir = tmpdir.join("html")
    subprocess.check_call(
        ["sphinx-build", "-W", "-blinkcheck",
          "-d", str(doctrees), ".", str(htmldir)])

def test_build_docs(tmpdir):
    doctrees = tmpdir.join("doctrees")
    htmldir = tmpdir.join("html")
    subprocess.check_call([
        "sphinx-build", "-W", "-bhtml",
          "-d", str(doctrees), ".", str(htmldir)])