mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Close #6798: autosummary: emit `autodoc-skip-member` event on generating stub file
This commit is contained in:
@@ -36,6 +36,11 @@ default_kw = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture(scope='function', autouse=True)
|
||||
def unload_target_module():
|
||||
sys.modules.pop('target', None)
|
||||
|
||||
|
||||
def test_mangle_signature():
|
||||
TEST = """
|
||||
() :: ()
|
||||
@@ -304,6 +309,14 @@ def test_generate_autosummary_docs_property(app):
|
||||
".. autoproperty:: Base.prop")
|
||||
|
||||
|
||||
@pytest.mark.sphinx(testroot='ext-autosummary-skip-member')
|
||||
def test_autosummary_skip_member(app):
|
||||
app.build()
|
||||
|
||||
content = (app.srcdir / 'generate' / 'target.Foo.rst').text()
|
||||
assert 'Foo.skipmeth' not in content
|
||||
|
||||
|
||||
@pytest.mark.sphinx('dummy', testroot='ext-autosummary',
|
||||
confoverrides={'autosummary_generate': []})
|
||||
def test_empty_autosummary_generate(app, status, warning):
|
||||
|
||||
Reference in New Issue
Block a user