~ruther/qmk_firmware

c7eede2249d22dd4fabed83043dcf4cc7408cf27 — skullY 6 years ago 5b7a5b2
run yapf on the code
M lib/python/qmk/tests/attrdict.py => lib/python/qmk/tests/attrdict.py +1 -0
@@ 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

M lib/python/qmk/tests/test_qmk_errors.py => lib/python/qmk/tests/test_qmk_errors.py +2 -1
@@ 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'

M lib/python/qmk/tests/test_qmk_keymap.py => lib/python/qmk/tests/test_qmk_keymap.py +1 -0
@@ 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

M lib/python/qmk/tests/test_qmk_path.py => lib/python/qmk/tests/test_qmk_path.py +1 -0
@@ 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'