Requested rename

This commit is contained in:
John Morrison
2022-05-04 18:15:30 +01:00
committed by xs5871
parent 12e7a1b42c
commit bea0f6d75b
4 changed files with 11 additions and 11 deletions

View File

@@ -0,0 +1,25 @@
import unittest
from kmk.extensions.stringy_keymaps import Stringy_keymaps
from kmk.keys import KC
from tests.keyboard_test import KeyboardTest
class Test_extension_stringy_keymaps(unittest.TestCase):
def test_basic_kmk_keyboard_replace_string_primary_name(self):
keyboard = KeyboardTest(
[], [['1', '2', '3', '4']], extensions={Stringy_keymaps()}
)
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']], extensions={Stringy_keymaps()}
)
keyboard.test('Simple key press', [(0, True), (0, False)], [{KC.N1}, {}])
if __name__ == '__main__':
unittest.main()