19 lines
557 B
Python
19 lines
557 B
Python
from gui_control.config.constants import HAND_CONFIGS
|
|
|
|
|
|
def test_o6_ok_preset_is_hand_specific() -> None:
|
|
config = HAND_CONFIGS["O6"]
|
|
|
|
assert config.get_preset_actions("left")["OK"] == [
|
|
95, 75, 116, 255, 255, 255,
|
|
]
|
|
assert config.get_preset_actions("right")["OK"] == [
|
|
95, 83, 122, 255, 255, 255,
|
|
]
|
|
assert config.get_preset_actions("left")["拇指对中指"] == [
|
|
88, 2, 255, 114, 255, 255,
|
|
]
|
|
assert config.get_preset_actions("right")["拇指对中指"] == [
|
|
95, 8, 255, 114, 255, 255,
|
|
]
|