From e5bd2df0e941c3d2a11d8fc9b017ebe5dfad619d Mon Sep 17 00:00:00 2001 From: latricewilgus <43064940+latricewilgus@users.noreply.github.com> Date: Sun, 19 Jul 2020 06:46:25 +0000 Subject: [PATCH] CmdLineStdoutTest::test_cmd_help: test for at least 20 lines The number of lines in the help output of a command depends on the terminal size. The smaller the more line breaks. The minimum number of lines for the current help message is 23. Currently we are checking for at least 30 lines, yielding to failures on large terminals. Reduce the number (currently 30) to 20 to have some leeway for the future. --- tests/test_cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 560a3d175..cdf8e56f1 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -861,7 +861,7 @@ def test_cmd_help(self): lines = out.splitlines() self.assertIn("", lines[0]) self.assertIn("--timid", out) - self.assertGreater(len(lines), 30) + self.assertGreater(len(lines), 20) self.assertEqual(lines[-1], "Full documentation is at {}".format(__url__)) def test_unknown_topic(self):