2010-11-18 22:04:50 +08:00
|
|
|
import subprocess
|
2018-05-23 22:48:46 +08:00
|
|
|
|
|
|
|
|
2010-11-18 22:04:50 +08:00
|
|
|
def test_build_docs(tmpdir):
|
|
|
|
doctrees = tmpdir.join("doctrees")
|
|
|
|
htmldir = tmpdir.join("html")
|
2018-05-23 22:48:46 +08:00
|
|
|
subprocess.check_call(
|
|
|
|
["sphinx-build", "-W", "-bhtml", "-d", str(doctrees), ".", str(htmldir)]
|
|
|
|
)
|
|
|
|
|
2010-11-18 22:04:50 +08:00
|
|
|
|
|
|
|
def test_linkcheck(tmpdir):
|
|
|
|
doctrees = tmpdir.join("doctrees")
|
|
|
|
htmldir = tmpdir.join("html")
|
|
|
|
subprocess.check_call(
|
2018-05-23 22:48:46 +08:00
|
|
|
["sphinx-build", "-blinkcheck", "-d", str(doctrees), ".", str(htmldir)]
|
|
|
|
)
|