Change to be an extension

This commit is contained in:
John Morrison
2022-04-29 19:21:16 +01:00
committed by xs5871
parent 842537064f
commit 73e95bfdde
9 changed files with 117 additions and 46 deletions

View File

@@ -10,20 +10,6 @@ class TestKmkKeyboard(unittest.TestCase):
keyboard.test('Simple key press', [(0, True), (0, False)], [{KC.N1}, {}])
def test_basic_kmk_keyboard_replace_string_primary_name(self):
keyboard = KeyboardTest([], [['1', '2', '3', '4']])
keyboard.test('Simple key press', [(0, True), (0, False)], [{KC.N1}, {}])
def test_basic_kmk_keyboard_replace_string_secondary_name(self):
keyboard = KeyboardTest([], [['N1', 'N2', 'N3', 'N4']])
keyboard.test('Simple key press', [(0, True), (0, False)], [{KC.N1}, {}])
def test_basic_kmk_keyboard_unknown_replacement_string(self):
with self.assertRaises(ValueError):
KeyboardTest([], [['UNKNOWN1', 'UNKNOWN2', 'UNKNOWN3', 'UNKNOWN4']])
if __name__ == '__main__':
unittest.main()