summaryrefslogtreecommitdiff
path: root/tests/test_summary.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_summary.py')
-rw-r--r--tests/test_summary.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py
index 82508de8..f0f16aa2 100644
--- a/tests/test_summary.py
+++ b/tests/test_summary.py
@@ -1001,3 +1001,9 @@ class SummaryReporterConfigurationTest(CoverageTest):
msg = "Invalid sorting option: 'Xyzzy'"
with pytest.raises(ConfigError, match=msg):
self.get_summary_text(('report:sort', 'Xyzzy'))
+
+ def test_report_with_invalid_format(self):
+ # Ask for an invalid format.
+ msg = "Unknown report format choice: 'xyzzy'"
+ with pytest.raises(ConfigError, match=msg):
+ self.get_summary_text(('report:format', 'xyzzy'))