2016-01-08 01:00:26 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
test_build_manpage
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Test the build process with manpage builder with the test root.
|
|
|
|
|
2017-03-22 06:21:12 -05:00
|
|
|
:copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
2016-01-08 01:00:26 -06:00
|
|
|
:license: BSD, see LICENSE for details.
|
|
|
|
"""
|
|
|
|
from __future__ import print_function
|
|
|
|
|
2017-01-05 10:14:47 -06:00
|
|
|
import pytest
|
2016-01-08 01:00:26 -06:00
|
|
|
|
|
|
|
|
2017-01-05 10:14:47 -06:00
|
|
|
@pytest.mark.sphinx('man')
|
2016-01-08 01:00:26 -06:00
|
|
|
def test_all(app, status, warning):
|
|
|
|
app.builder.build_all()
|
|
|
|
assert (app.outdir / 'SphinxTests.1').exists()
|
|
|
|
|
|
|
|
content = (app.outdir / 'SphinxTests.1').text()
|
|
|
|
assert r'\fBprint \fP\fIi\fP\fB\en\fP' in content
|
2016-01-08 07:17:45 -06:00
|
|
|
assert r'\fBmanpage\en\fP' in content
|
2016-03-06 02:49:49 -06:00
|
|
|
|
|
|
|
# term of definition list including nodes.strong
|
|
|
|
assert '\n.B term1\n' in content
|
|
|
|
assert '\nterm2 (\\fBstronged partially\\fP)\n' in content
|