unit tests for execution in desktop dev environment
This commit is contained in:
15
tests/test_kmk_keyboard.py
Normal file
15
tests/test_kmk_keyboard.py
Normal 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()
|
Reference in New Issue
Block a user