Skip to content

Commit

Permalink
fix: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DBendit authored and xs5871 committed Nov 21, 2022
1 parent 7115774 commit 99542b0
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions tests/test_capsword.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from kmk.modules.capsword import CapsWord
from tests.keyboard_test import KeyboardTest

#TODO: Add tests for custom and default ignored keys, custom and default timeouts
# TODO: Add tests for custom and default ignored keys, custom and default timeouts


class TestCapsWord(unittest.TestCase):
def setUp(self):
Expand All @@ -19,8 +20,44 @@ def setUp(self):
def test_capsword(self):
self.kb.test(
'CapsWord',
[(1, True), (1, False), (0, True), (0, False), (1, True), (1, False), (2, True), (2, False), (3, True), (3, False), (4, True), (4, False), (1, True), (1, False), (5, True), (5, False), (1, True), (1, False)],
[{KC.A}, {}, {KC.LSFT, KC.A}, {}, {KC.LSFT, KC.Z}, {}, {KC.N1}, {}, {KC.N0}, {}, {KC.LSFT, KC.A}, {}, {KC.SPC}, {}, {KC.A}, {}],
[
(1, True),
(1, False),
(0, True),
(0, False),
(1, True),
(1, False),
(2, True),
(2, False),
(3, True),
(3, False),
(4, True),
(4, False),
(1, True),
(1, False),
(5, True),
(5, False),
(1, True),
(1, False),
],
[
{KC.A},
{},
{KC.LSFT, KC.A},
{},
{KC.LSFT, KC.Z},
{},
{KC.N1},
{},
{KC.N0},
{},
{KC.LSFT, KC.A},
{},
{KC.SPC},
{},
{KC.A},
{},
],
)


Expand Down

0 comments on commit 99542b0

Please sign in to comment.