summaryrefslogtreecommitdiff
path: root/tests/test_ext_coverage.py
diff options
context:
space:
mode:
authorCielquan <cielquan@protonmail.com>2020-06-05 09:26:53 +0200
committerCielquan <cielquan@protonmail.com>2020-06-05 09:26:53 +0200
commitcc1f15246c42556a94248a8e4abc2ee13695ea82 (patch)
tree0216996bde616db9b08edc9336fc9cd20474fc66 /tests/test_ext_coverage.py
parent42b755db2e8e2d6f0540e7208d190302f3ac611d (diff)
downloadsphinx-git-cc1f15246c42556a94248a8e4abc2ee13695ea82.tar.gz
added test for show_missing_items True in quiet mode
Diffstat (limited to 'tests/test_ext_coverage.py')
-rw-r--r--tests/test_ext_coverage.py12
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()