From ff2b70a39bbe5f6b6e1752e4664fad64211d2280 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 13 Nov 2021 18:17:16 -0500 Subject: debug: the `coverage debug` command no longer accepts multiple topics --- tests/test_cmdline.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 112e5d68..f879461a 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -259,9 +259,13 @@ class CmdLineTest(BaseCmdLineTest): cov.save() """) - def test_debug(self): - self.cmd_help("debug", "What information would you like: config, data, sys, premain?") - self.cmd_help("debug foo", "Don't know what you mean by 'foo'") + @pytest.mark.parametrize("cmd, output", [ + ("debug", "What information would you like: config, data, sys, premain?"), + ("debug foo", "Don't know what you mean by 'foo'"), + ("debug sys config", "Only one topic at a time, please"), + ]) + def test_debug(self, cmd, output): + self.cmd_help(cmd, output) def test_debug_sys(self): self.command_line("debug sys") -- cgit v1.2.1