mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add a testcase for #9694
This commit is contained in:
parent
d0e014b4bc
commit
571929974a
@ -23,6 +23,9 @@ def test_all(app, status, warning):
|
|||||||
assert r'\fBprint \fP\fIi\fP\fB\en\fP' in content
|
assert r'\fBprint \fP\fIi\fP\fB\en\fP' in content
|
||||||
assert r'\fBmanpage\en\fP' in content
|
assert r'\fBmanpage\en\fP' in content
|
||||||
|
|
||||||
|
# heading (title + description)
|
||||||
|
assert r'sphinxtests \- Sphinx <Tests> 0.6alpha1' in content
|
||||||
|
|
||||||
# term of definition list including nodes.strong
|
# term of definition list including nodes.strong
|
||||||
assert '\n.B term1\n' in content
|
assert '\n.B term1\n' in content
|
||||||
assert '\nterm2 (\\fBstronged partially\\fP)\n' in content
|
assert '\nterm2 (\\fBstronged partially\\fP)\n' in content
|
||||||
@ -35,6 +38,15 @@ def test_all(app, status, warning):
|
|||||||
assert 'Footnotes' not in content
|
assert 'Footnotes' not in content
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sphinx('man', testroot='basic',
|
||||||
|
confoverrides={'man_pages': [('index', 'title', None, [], 1)]})
|
||||||
|
def test_man_pages_empty_description(app, status, warning):
|
||||||
|
app.builder.build_all()
|
||||||
|
|
||||||
|
content = (app.outdir / 'title.1').read_text()
|
||||||
|
assert r'title \-' not in content
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.sphinx('man', testroot='basic',
|
@pytest.mark.sphinx('man', testroot='basic',
|
||||||
confoverrides={'man_make_section_directory': True})
|
confoverrides={'man_make_section_directory': True})
|
||||||
def test_man_make_section_directory(app, status, warning):
|
def test_man_make_section_directory(app, status, warning):
|
||||||
|
Loading…
Reference in New Issue
Block a user