diff options
author | Adrián Chaves <adrian@chaves.io> | 2019-05-14 14:48:52 +0200 |
---|---|---|
committer | Adrián Chaves <adrian@chaves.io> | 2019-05-15 12:23:05 +0200 |
commit | e84ba7f78aa0e09750c12e38963d5f43ca599c26 (patch) | |
tree | db4319b53936ffc473e88dd535fc18516b96cab3 /tests/test_ext_coverage.py | |
parent | c81ae00430317be4d0811439e546c71a6412eb18 (diff) | |
download | sphinx-git-e84ba7f78aa0e09750c12e38963d5f43ca599c26.tar.gz |
Support coverage_ignore_pyobjects in the coverage builder
Diffstat (limited to 'tests/test_ext_coverage.py')
-rw-r--r-- | tests/test_ext_coverage.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_ext_coverage.py b/tests/test_ext_coverage.py index 73181909d..8209820a0 100644 --- a/tests/test_ext_coverage.py +++ b/tests/test_ext_coverage.py @@ -45,3 +45,22 @@ def test_build(app, status, warning): assert 'classes' in undoc_py['autodoc_target'] assert 'Class' in undoc_py['autodoc_target']['classes'] assert 'undocmeth' in undoc_py['autodoc_target']['classes']['Class'] + + +@pytest.mark.sphinx('coverage', testroot='ext-coverage') +def test_coverage_ignore_pyobjects(app, status, warning): + app.builder.build_all() + actual = (app.outdir / 'python.txt').text() + expected = '''Undocumented Python objects +=========================== +coverage_not_ignored +-------------------- +Classes: + * Documented -- missing methods: + + - not_ignored1 + - not_ignored2 + * NotIgnored + +''' + assert actual == expected |