From 5e1e3cdf640face90ac5898ea4de7484c5edeae1 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Thu, 26 Sep 2019 04:23:50 +0300 Subject: refactoring --- testenv/linters/vulture-wl.py | 4 ++-- testenv/tests/test_keymap.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'testenv') diff --git a/testenv/linters/vulture-wl.py b/testenv/linters/vulture-wl.py index 9bdbc834..377c71a6 100644 --- a/testenv/linters/vulture-wl.py +++ b/testenv/linters/vulture-wl.py @@ -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 diff --git a/testenv/tests/test_keymap.py b/testenv/tests/test_keymap.py index f69accb1..4ee603d0 100644 --- a/testenv/tests/test_keymap.py +++ b/testenv/tests/test_keymap.py @@ -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: -- cgit v1.2.3