Fix #6498: autosummary: crashed with wrong autosummary_generate setting

This commit is contained in:
Takeshi KOMIYA committed 2019-06-19 14:03:42 +09:00
1 parent c78018cda7
commit 1aa1373ce3
3 files changed
+20 -7

No files matched your search

+6
View File
@@ -302,3 +302,9 @@ def test_generate_autosummary_docs_property(app):
".. currentmodule:: target.methods\n"
"\n"
".. autoproperty:: Base.prop")
@pytest.mark.sphinx('dummy', testroot='ext-autosummary',
confoverrides={'autosummary_generate': ['unknown']})
def test_invalid_autosummary_generate(app, status, warning):
assert 'WARNING: autosummary_generate: file not found: unknown.rst' in warning.getvalue()