summaryrefslogtreecommitdiff
path: root/tests/test_ext_apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-15 16:45:17 +0900
committerGitHub <noreply@github.com>2019-06-15 16:45:17 +0900
commitf6dfab33d29cd389c791acf5821adf556df5ca17 (patch)
tree07ecbae0a006a51567648553cfaa1f03fe6cbdc4 /tests/test_ext_apidoc.py
parent8fd817d174aed3c6655190f904b89f6f7f2ec099 (diff)
parent5cf84a5505a6063b48e7fcc4d489259ade526912 (diff)
downloadsphinx-git-f6dfab33d29cd389c791acf5821adf556df5ca17.tar.gz
Merge branch '2.0' into refactor_todo2
Diffstat (limited to 'tests/test_ext_apidoc.py')
-rw-r--r--tests/test_ext_apidoc.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/test_ext_apidoc.py b/tests/test_ext_apidoc.py
index c6cf43c7e..34c6ec824 100644
--- a/tests/test_ext_apidoc.py
+++ b/tests/test_ext_apidoc.py
@@ -467,7 +467,8 @@ def test_package_file(tempdir):
outdir = path(tempdir)
(outdir / 'testpkg').makedirs()
(outdir / 'testpkg' / '__init__.py').write_text('')
- (outdir / 'testpkg' / 'example.py').write_text('')
+ (outdir / 'testpkg' / 'hello.py').write_text('')
+ (outdir / 'testpkg' / 'world.py').write_text('')
(outdir / 'testpkg' / 'subpkg').makedirs()
(outdir / 'testpkg' / 'subpkg' / '__init__.py').write_text('')
apidoc_main(['-o', tempdir, tempdir / 'testpkg'])
@@ -488,10 +489,18 @@ def test_package_file(tempdir):
"Submodules\n"
"----------\n"
"\n"
- "testpkg.example module\n"
- "----------------------\n"
+ "testpkg.hello module\n"
+ "--------------------\n"
"\n"
- ".. automodule:: testpkg.example\n"
+ ".. automodule:: testpkg.hello\n"
+ " :members:\n"
+ " :undoc-members:\n"
+ " :show-inheritance:\n"
+ "\n"
+ "testpkg.world module\n"
+ "--------------------\n"
+ "\n"
+ ".. automodule:: testpkg.world\n"
" :members:\n"
" :undoc-members:\n"
" :show-inheritance:\n"