kmk_firmware/tests/test_kmk_keyboard.py

16 lines
369 B
Python
Raw Normal View History

import unittest
from kmk.keys import KC
from tests.keyboard_test import KeyboardTest
class TestKmkKeyboard(unittest.TestCase):
def test_basic_kmk_keyboard(self):
keyboard = KeyboardTest([], [[KC.N1, KC.N2, KC.N3, KC.N4]])
keyboard.test('Simple key press', [(0, True), (0, False)], [{KC.N1}, {}])
2022-04-25 21:24:08 +02:00
if __name__ == '__main__':
unittest.main()