From 873af90a6e512de783a71f202d17b5d5e5c5363f Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:24:54 -0600 Subject: [PATCH] Remove other unnecessary test case --- tests/unit/test_cli.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index a4a1d587c4a..a55767585c9 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -52,14 +52,3 @@ def test_commands_in_enum_and_dict(self): continue cmd = Command.from_str(command.name) command_args(cmd) - - def test_global_flags_not_on_subcommands(self): - def run_test(command): - # For each subcommand - for command_name, command in command.commands.items(): - # Get string representation of all parameter options for this subcommand e.g. "['-t', '--target']" - parameter_options = [str(sorted(param.opts)) for param in command.params] - # Check there are no parameter options that have been applied twice - assert sorted(list(set(parameter_options))) == sorted(parameter_options) - - run_test(cli)