@@ -604,23 +604,20 @@ def test_new_from_path_unknown_device(db, fallback, bustype):
604604
605605@pytest .mark .parametrize (
606606 "feature" ,
607- ("Ring" , "Touchstrip " , "Dial" ),
607+ ("Ring" , "Strip " , "Dial" ),
608608)
609609@pytest .mark .parametrize ("count" , (1 , 2 ))
610610def test_button_modeswitch (custom_datadir , feature , count ):
611611 USBID = (0x1234 , 0x5678 )
612612
613- # sigh, Touchstrip but StripsNumModes...
614- num_mode_key = f"{ feature } s" if feature != "Touchstrip" else "Strip"
615-
616613 extra = {
617614 "Buttons" : {
618615 "Left" : "A;B;C;" ,
619616 "Right" : "D;E;F;" ,
620617 feature : "A" ,
621618 },
622619 "Features" : {
623- num_mode_key : 4 ,
620+ f" { feature } s" : 4 ,
624621 },
625622 }
626623 if count > 1 :
@@ -639,7 +636,7 @@ def test_button_modeswitch(custom_datadir, feature, count):
639636
640637 expected_flag = {
641638 "Ring" : WacomDevice .ButtonFlags .RING_MODESWITCH ,
642- "Touchstrip " : WacomDevice .ButtonFlags .TOUCHSTRIP_MODESWITCH ,
639+ "Strip " : WacomDevice .ButtonFlags .TOUCHSTRIP_MODESWITCH ,
643640 "Dial" : WacomDevice .ButtonFlags .DIAL_MODESWITCH ,
644641 }[feature ]
645642
@@ -652,7 +649,7 @@ def test_button_modeswitch(custom_datadir, feature, count):
652649
653650 expected_flag = {
654651 "Ring" : WacomDevice .ButtonFlags .RING2_MODESWITCH ,
655- "Touchstrip " : WacomDevice .ButtonFlags .TOUCHSTRIP2_MODESWITCH ,
652+ "Strip " : WacomDevice .ButtonFlags .TOUCHSTRIP2_MODESWITCH ,
656653 "Dial" : WacomDevice .ButtonFlags .DIAL2_MODESWITCH ,
657654 }[feature ]
658655
@@ -669,15 +666,12 @@ def test_button_modeswitch(custom_datadir, feature, count):
669666
670667@pytest .mark .parametrize (
671668 "feature" ,
672- ("Ring" , "Touchstrip " , "Dial" ),
669+ ("Ring" , "Strip " , "Dial" ),
673670)
674671@pytest .mark .parametrize ("count" , (1 , 2 ))
675672def test_status_leds (custom_datadir , feature , count ):
676673 USBID = (0x1234 , 0x5678 )
677674
678- # sigh, Touchstrip but StripsNumModes...
679- num_mode_key = f"{ feature } s" if feature != "Touchstrip" else "Strip"
680-
681675 extra = {
682676 "Buttons" : {
683677 "Left" : "A;B;C;" ,
@@ -686,7 +680,7 @@ def test_status_leds(custom_datadir, feature, count):
686680 },
687681 "Features" : {
688682 "StatusLEDs" : f"{ feature } ;{ feature } 2" if count > 1 else f"{ feature } " ,
689- num_mode_key : 4 ,
683+ f" { feature } s" : 4 ,
690684 },
691685 }
692686 if count > 1 :
@@ -706,7 +700,7 @@ def test_status_leds(custom_datadir, feature, count):
706700 expected = [
707701 {
708702 "Ring" : WacomStatusLed .RING ,
709- "Touchstrip " : WacomStatusLed .TOUCHSTRIP ,
703+ "Strip " : WacomStatusLed .TOUCHSTRIP ,
710704 "Dial" : WacomStatusLed .DIAL ,
711705 }[feature ]
712706 ]
@@ -715,7 +709,7 @@ def test_status_leds(custom_datadir, feature, count):
715709 expected .append (
716710 {
717711 "Ring" : WacomStatusLed .RING2 ,
718- "Touchstrip " : WacomStatusLed .TOUCHSTRIP2 ,
712+ "Strip " : WacomStatusLed .TOUCHSTRIP2 ,
719713 "Dial" : WacomStatusLed .DIAL2 ,
720714 }[feature ]
721715 )
0 commit comments