summaryrefslogtreecommitdiff
path: root/tests/test_build_manpage.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-10-04 22:40:41 +0900
committerGitHub <noreply@github.com>2020-10-04 22:40:41 +0900
commit38bb3774643d779b708970f941f2b16d1ab81b89 (patch)
tree431b8b16b734154df94f86ed17c45a88ed7a64eb /tests/test_build_manpage.py
parentf2d8093632a56737365c25c4340bb5032de5c68d (diff)
parent178c05b0597e144fdc2117c7b46ac15723a290e8 (diff)
downloadsphinx-git-38bb3774643d779b708970f941f2b16d1ab81b89.tar.gz
Merge pull request #8273 from sphinx-doc/7996_man_make_section_directory
Close #7996: manpage: Add man_make_section_directory
Diffstat (limited to 'tests/test_build_manpage.py')
-rw-r--r--tests/test_build_manpage.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py
index c3c41a2ae..d4b1a320e 100644
--- a/tests/test_build_manpage.py
+++ b/tests/test_build_manpage.py
@@ -30,6 +30,13 @@ def test_all(app, status, warning):
assert 'Footnotes' not in content
+@pytest.mark.sphinx('man', testroot='basic',
+ confoverrides={'man_make_section_directory': True})
+def test_man_make_section_directory(app, status, warning):
+ app.build()
+ assert (app.outdir / '1' / 'python.1').exists()
+
+
@pytest.mark.sphinx('man', testroot='directive-code')
def test_captioned_code_block(app, status, warning):
app.builder.build_all()