diff options
Diffstat (limited to 'tests/test_ext_apidoc.py')
-rw-r--r-- | tests/test_ext_apidoc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_ext_apidoc.py b/tests/test_ext_apidoc.py index 767aa047e..3033cb450 100644 --- a/tests/test_ext_apidoc.py +++ b/tests/test_ext_apidoc.py @@ -408,11 +408,13 @@ def test_private(tempdir): # without --private option apidoc_main(['-o', tempdir, tempdir]) assert (tempdir / 'hello.rst').exists() + assert ':private-members:' not in (tempdir / 'hello.rst').text() assert not (tempdir / '_world.rst').exists() # with --private option - apidoc_main(['--private', '-o', tempdir, tempdir]) + apidoc_main(['--private', '-f', '-o', tempdir, tempdir]) assert (tempdir / 'hello.rst').exists() + assert ':private-members:' in (tempdir / 'hello.rst').text() assert (tempdir / '_world.rst').exists() |