1 | #!/usr/bin/env python |
||
2 | |||
3 | from subprocess import Popen, PIPE, STDOUT |
||
4 | |||
5 | |||
6 | View Code Duplication | def test_linkcheck(tmpdir): |
|
0 ignored issues
–
show
Duplication
introduced
by
![]() |
|||
7 | doctrees = tmpdir.join("doctrees") |
||
8 | htmldir = tmpdir.join("html") |
||
9 | p = Popen([ |
||
10 | "sphinx-build", "-W", "-blinkcheck", |
||
11 | "-d", str(doctrees), "source", str(htmldir) |
||
12 | ], stdout=PIPE, stderr=STDOUT) |
||
13 | stdout, _ = p.communicate() |
||
14 | if not p.wait() == 0: |
||
15 | print(stdout) |
||
16 | |||
17 | |||
18 | View Code Duplication | def test_build_docs(tmpdir): |
|
0 ignored issues
–
show
|
|||
19 | doctrees = tmpdir.join("doctrees") |
||
20 | htmldir = tmpdir.join("html") |
||
21 | p = Popen([ |
||
22 | "sphinx-build", "-W", "-bhtml", |
||
23 | "-d", str(doctrees), "source", str(htmldir) |
||
24 | ], stdout=PIPE, stderr=STDOUT) |
||
25 | stdout, _ = p.communicate() |
||
26 | if not p.wait() == 0: |
||
27 | print(stdout) |
||
28 |