From fc9af7a97691e7586fdcec85e36754d8d953dc56 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Sat, 19 Aug 2023 13:57:48 +0545 Subject: [PATCH] assert that the test is getting parametrized correctly (#9859) Otherwise this may end up generating 0 or not enough commands, and passing tests --- tests/unit/command/test_help.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/command/test_help.py b/tests/unit/command/test_help.py index dfe84d966..0db6796ea 100644 --- a/tests/unit/command/test_help.py +++ b/tests/unit/command/test_help.py @@ -25,6 +25,10 @@ def command_tuples(): main_parser = get_main_parser() recurse_parser(main_parser) + + # the no. of commands will usually go up, + # but if we ever remove commands and drop below, adjust the magic number accordingly + assert len(commands) >= 96 return sorted(commands)