mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-09-22 20:09:07 +03:00
17 lines
480 B
Python
17 lines
480 B
Python
|
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)])
|