diff options
author | skullY <skullydazed@gmail.com> | 2019-08-21 23:46:51 -0700 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-09-07 07:58:41 -0700 |
commit | c7eede2249d22dd4fabed83043dcf4cc7408cf27 (patch) | |
tree | 75b83e042ba618f47f47a852680928271e9d906b /lib/python/qmk | |
parent | 5b7a5b2a7629fbb667d23a55836dce3c6c46a203 (diff) | |
download | qmk_firmware-c7eede2249d22dd4fabed83043dcf4cc7408cf27.tar.gz |
run yapf on the code
Diffstat (limited to 'lib/python/qmk')
-rw-r--r-- | lib/python/qmk/tests/attrdict.py | 1 | ||||
-rw-r--r-- | lib/python/qmk/tests/test_qmk_errors.py | 3 | ||||
-rw-r--r-- | lib/python/qmk/tests/test_qmk_keymap.py | 1 | ||||
-rw-r--r-- | lib/python/qmk/tests/test_qmk_path.py | 1 |
4 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/qmk/tests/attrdict.py b/lib/python/qmk/tests/attrdict.py index a2584b923..391c75c4e 100644 --- a/lib/python/qmk/tests/attrdict.py +++ b/lib/python/qmk/tests/attrdict.py @@ -3,6 +3,7 @@ class AttrDict(dict): This should only be used to mock objects for unit testing. Please do not use this outside of qmk.tests. """ + def __init__(self, *args, **kwargs): super(AttrDict, self).__init__(*args, **kwargs) self.__dict__ = self diff --git a/lib/python/qmk/tests/test_qmk_errors.py b/lib/python/qmk/tests/test_qmk_errors.py index 3f6b56713..1d8690b7e 100644 --- a/lib/python/qmk/tests/test_qmk_errors.py +++ b/lib/python/qmk/tests/test_qmk_errors.py @@ -1,7 +1,8 @@ from qmk.errors import NoSuchKeyboardError + def test_NoSuchKeyboardError(): try: - raise(NoSuchKeyboardError("test message")) + raise NoSuchKeyboardError("test message") except NoSuchKeyboardError as e: assert e.message == 'test message' diff --git a/lib/python/qmk/tests/test_qmk_keymap.py b/lib/python/qmk/tests/test_qmk_keymap.py index 6a565ee90..2db625600 100644 --- a/lib/python/qmk/tests/test_qmk_keymap.py +++ b/lib/python/qmk/tests/test_qmk_keymap.py @@ -1,5 +1,6 @@ import qmk.keymap + def test_template_onekey_proton_c(): templ = qmk.keymap.template('handwired/onekey/proton_c') assert templ == qmk.keymap.DEFAULT_KEYMAP_C diff --git a/lib/python/qmk/tests/test_qmk_path.py b/lib/python/qmk/tests/test_qmk_path.py index 23816be7e..94dbf3a6a 100644 --- a/lib/python/qmk/tests/test_qmk_path.py +++ b/lib/python/qmk/tests/test_qmk_path.py @@ -2,6 +2,7 @@ import os import qmk.path + def test_keymap_onekey_pytest(): path = qmk.path.keymap('handwired/onekey/pytest') assert path == 'keyboards/handwired/onekey/keymaps' |