@@ -553,7 +553,7 @@ def test_subcommands(command_sets_manual) -> None:
553
553
554
554
assert first_match is not None
555
555
# check that the alias shows up correctly
556
- assert ['banana' , 'bananer' , 'bokchoy' ] == command_sets_manual . completion_matches
556
+ assert command_sets_manual . completion_matches == ['banana' , 'bananer' , 'bokchoy' ]
557
557
558
558
cmd_result = command_sets_manual .app_cmd ('cut banana discs' )
559
559
assert 'cutting banana: discs' in cmd_result .stdout
@@ -566,7 +566,7 @@ def test_subcommands(command_sets_manual) -> None:
566
566
567
567
assert first_match is not None
568
568
# verify that argparse completer in commandset functions correctly
569
- assert ['diced' , 'quartered' ] == command_sets_manual . completion_matches
569
+ assert command_sets_manual . completion_matches == ['diced' , 'quartered' ]
570
570
571
571
# verify that command set uninstalls without problems
572
572
command_sets_manual .unregister_command_set (fruit_cmds )
@@ -598,7 +598,7 @@ def test_subcommands(command_sets_manual) -> None:
598
598
599
599
assert first_match is not None
600
600
# check that the alias shows up correctly
601
- assert ['banana' , 'bananer' , 'bokchoy' ] == command_sets_manual . completion_matches
601
+ assert command_sets_manual . completion_matches == ['banana' , 'bananer' , 'bokchoy' ]
602
602
603
603
text = ''
604
604
line = f'cut bokchoy { text } '
@@ -608,7 +608,7 @@ def test_subcommands(command_sets_manual) -> None:
608
608
609
609
assert first_match is not None
610
610
# verify that argparse completer in commandset functions correctly
611
- assert ['diced' , 'quartered' ] == command_sets_manual . completion_matches
611
+ assert command_sets_manual . completion_matches == ['diced' , 'quartered' ]
612
612
613
613
# disable again and verify can still uninstnall
614
614
command_sets_manual .disable_command ('cut' , 'disabled for test' )
@@ -763,7 +763,7 @@ def test_static_subcommands(static_subcommands_app) -> None:
763
763
764
764
assert first_match is not None
765
765
# check that the alias shows up correctly
766
- assert ['banana' , 'bananer' , 'bokchoy' ] == static_subcommands_app . completion_matches
766
+ assert static_subcommands_app . completion_matches == ['banana' , 'bananer' , 'bokchoy' ]
767
767
768
768
text = ''
769
769
line = f'cut bokchoy { text } '
@@ -773,7 +773,7 @@ def test_static_subcommands(static_subcommands_app) -> None:
773
773
774
774
assert first_match is not None
775
775
# verify that argparse completer in commandset functions correctly
776
- assert ['diced' , 'quartered' ] == static_subcommands_app . completion_matches
776
+ assert static_subcommands_app . completion_matches == ['diced' , 'quartered' ]
777
777
778
778
779
779
complete_states_expected_self = None
0 commit comments