mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-05-18 22:02:06 +01:00
Setup a python test framework
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
|
||||
import qmk.path
|
||||
|
||||
def test_keymap_onekey_pytest():
|
||||
path = qmk.path.keymap('handwired/onekey/pytest')
|
||||
assert path == 'keyboards/handwired/onekey/keymaps'
|
||||
|
||||
|
||||
def test_normpath():
|
||||
path = qmk.path.normpath('lib/python')
|
||||
assert path == os.environ['ORIG_CWD'] + '/lib/python'
|
||||
Reference in New Issue
Block a user