diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-13 18:17:16 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-13 18:27:44 -0500 |
commit | ff2b70a39bbe5f6b6e1752e4664fad64211d2280 (patch) | |
tree | 4662d5a6c8d1657d4bd12e60a7bc89bc2141b0d7 /tests | |
parent | 79753a1476a407b4fe1fad69081395c497d53d21 (diff) | |
download | python-coveragepy-git-ff2b70a39bbe5f6b6e1752e4664fad64211d2280.tar.gz |
debug: the `coverage debug` command no longer accepts multiple topics
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmdline.py | 10 |
1 files changed, 7 insertions, 3 deletions
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") |