@@ -553,7 +553,7 @@ def test_subcommands(command_sets_manual) -> None:
553553
554554 assert first_match is not None
555555 # 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' ]
557557
558558 cmd_result = command_sets_manual .app_cmd ('cut banana discs' )
559559 assert 'cutting banana: discs' in cmd_result .stdout
@@ -566,7 +566,7 @@ def test_subcommands(command_sets_manual) -> None:
566566
567567 assert first_match is not None
568568 # 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' ]
570570
571571 # verify that command set uninstalls without problems
572572 command_sets_manual .unregister_command_set (fruit_cmds )
@@ -598,7 +598,7 @@ def test_subcommands(command_sets_manual) -> None:
598598
599599 assert first_match is not None
600600 # 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' ]
602602
603603 text = ''
604604 line = f'cut bokchoy { text } '
@@ -608,7 +608,7 @@ def test_subcommands(command_sets_manual) -> None:
608608
609609 assert first_match is not None
610610 # 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' ]
612612
613613 # disable again and verify can still uninstnall
614614 command_sets_manual .disable_command ('cut' , 'disabled for test' )
@@ -763,7 +763,7 @@ def test_static_subcommands(static_subcommands_app) -> None:
763763
764764 assert first_match is not None
765765 # 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' ]
767767
768768 text = ''
769769 line = f'cut bokchoy { text } '
@@ -773,7 +773,7 @@ def test_static_subcommands(static_subcommands_app) -> None:
773773
774774 assert first_match is not None
775775 # 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' ]
777777
778778
779779complete_states_expected_self = None
0 commit comments