Add an option for the coverage builder if source-undocumented items are matched.

This commit is contained in:
Georg Brandl
2011-01-04 22:50:13 +01:00
parent 7616639622
commit 208e8a66e2
3 changed files with 30 additions and 7 deletions

View File

@@ -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')