mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -8,8 +8,8 @@ IpmiServer.handle_raw_request
|
||||
|
||||
fake_rpi.RPi.GPIO
|
||||
|
||||
_KeyMapping.arduino_hid_code
|
||||
_KeyMapping.arduino_hid_key
|
||||
_KeyMapping.serial_hid_code
|
||||
_KeyMapping.serial_hid_key
|
||||
_KeyMapping.web_key
|
||||
|
||||
_ScriptWriter.get_args
|
||||
|
||||
@@ -27,8 +27,7 @@ from kvmd.keymap import KEYMAP
|
||||
|
||||
# =====
|
||||
def test_ok__keymap() -> None:
|
||||
assert type(KEYMAP["KeyA"]) == int # pylint: disable=unidiomatic-typecheck
|
||||
assert KEYMAP["KeyA"] == 1
|
||||
assert KEYMAP["KeyA"].serial.code == 1
|
||||
|
||||
|
||||
def test_fail__keymap() -> None:
|
||||
|
||||
Reference in New Issue
Block a user