2011-12-15 03:27:29 +04:00
|
|
|
import pytest
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
def test_linkcheck(tmpdir):
|
|
|
|
doctrees = tmpdir.join("doctrees")
|
|
|
|
htmldir = tmpdir.join("html")
|
|
|
|
subprocess.check_call(
|
2011-12-15 15:25:56 +04:00
|
|
|
["sphinx-build", "-q", "-blinkcheck",
|
2011-12-15 03:27:29 +04:00
|
|
|
"-d", str(doctrees), ".", str(htmldir)])
|
|
|
|
|
|
|
|
def test_build_docs(tmpdir):
|
|
|
|
doctrees = tmpdir.join("doctrees")
|
2011-12-15 04:16:09 +04:00
|
|
|
htmldir = "html" #we want to keep the docs
|
2011-12-15 03:27:29 +04:00
|
|
|
subprocess.check_call([
|
2011-12-15 15:25:56 +04:00
|
|
|
"sphinx-build", "-q", "-bhtml",
|
2011-12-15 03:27:29 +04:00
|
|
|
"-d", str(doctrees), ".", str(htmldir)])
|