Skip to content

Commit

Permalink
Remove other unnecessary test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Mar 21, 2024
1 parent 89358c2 commit 873af90
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 873af90

Please sign in to comment.