mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add an option for the coverage builder if source-undocumented items are matched.
This commit is contained in:
@@ -27,6 +27,8 @@ def test_build(app):
|
||||
assert ' * function\n' not in py_undoc # these two are documented
|
||||
assert ' * Class\n' not in py_undoc # in autodoc.txt
|
||||
|
||||
assert ' * mod -- No module named mod' # in the "failed import" section
|
||||
|
||||
c_undoc = (app.outdir / 'c.txt').text()
|
||||
assert c_undoc.startswith('Undocumented C API elements\n'
|
||||
'===========================\n')
|
||||
|
||||
Reference in New Issue
Block a user