mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
26 lines
599 B
Python
26 lines
599 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
"""
|
||
|
test_build_linkcheck
|
||
|
~~~~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
Test the build process with manpage builder with the test root.
|
||
|
|
||
|
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
||
|
:license: BSD, see LICENSE for details.
|
||
|
"""
|
||
|
from __future__ import print_function
|
||
|
|
||
|
from util import with_app
|
||
|
|
||
|
|
||
|
@with_app('linkcheck', testroot='linkcheck', freshenv=True)
|
||
|
def test_all(app, status, warning):
|
||
|
app.builder.build_all()
|
||
|
|
||
|
assert (app.outdir / 'output.txt').exists()
|
||
|
content = (app.outdir / 'output.txt').text()
|
||
|
|
||
|
# expect all ok
|
||
|
assert not content
|
||
|
|