Skip to content

Commit

Permalink
Add a testcase for #9694
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Sep 11, 2021
1 parent d0e014b commit 5719299
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_build_manpage.py
Expand Up @@ -23,6 +23,9 @@ def test_all(app, status, warning):
assert r'\fBprint \fP\fIi\fP\fB\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
assert '\n.B term1\n' in content
assert '\nterm2 (\\fBstronged partially\\fP)\n' in content
Expand All @@ -35,6 +38,15 @@ def test_all(app, status, warning):
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',
confoverrides={'man_make_section_directory': True})
def test_man_make_section_directory(app, status, warning):
Expand Down

1 comment on commit 5719299

@hkuno
Copy link
Contributor

@hkuno hkuno commented on 5719299 Sep 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you VERY much @tk0miya!! (-:
(Adding @jsquyres to keep him in the loop.)

Please sign in to comment.