unit tests for execution in desktop dev environment

This commit is contained in:
Christian Tu
2021-12-05 15:24:51 +01:00
committed by Josh Klar
parent e70ce5f431
commit b6201d43d4
9 changed files with 285 additions and 34 deletions

View File

@@ -0,0 +1,15 @@
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}, {}])
if __name__ == '__main__':
unittest.main()