diff options
author | Cielquan <cielquan@protonmail.com> | 2020-06-05 10:26:53 +0300 |
---|---|---|
committer | Cielquan <cielquan@protonmail.com> | 2020-06-05 10:26:53 +0300 |
commit | cc1f15246c42556a94248a8e4abc2ee13695ea82 (patch) | |
tree | 0216996bde616db9b08edc9336fc9cd20474fc66 | |
parent | 42b755db2e8e2d6f0540e7208d190302f3ac611d (diff) |
added test for show_missing_items True in quiet mode
-rw-r--r-- | tests/test_ext_coverage.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_ext_coverage.py b/tests/test_ext_coverage.py index 1ac828dc5..033a1c1b1 100644 --- a/tests/test_ext_coverage.py +++ b/tests/test_ext_coverage.py @@ -81,3 +81,15 @@ def test_show_missing_items(app, status, warning): assert "py method Class.roger" in status.getvalue() assert "c api Py_SphinxTest [ function]" in status.getvalue() + + +@pytest.mark.sphinx('coverage', confoverrides={'coverage_show_missing_items': True}) +def test_show_missing_items_quiet(app, status, warning): + app.quiet = True + app.builder.build_all() + + assert "undocumented python function: autodoc_target :: raises" in warning.getvalue() + assert "undocumented python class: autodoc_target :: Base" in warning.getvalue() + assert "undocumented python method: autodoc_target :: Class :: roger" in warning.getvalue() + + assert "undocumented c api: Py_SphinxTest [function]" in warning.getvalue() |