diff options
Diffstat (limited to 'lib/python/qmk/tests/test_qmk_path.py')
-rw-r--r-- | lib/python/qmk/tests/test_qmk_path.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python/qmk/tests/test_qmk_path.py b/lib/python/qmk/tests/test_qmk_path.py new file mode 100644 index 000000000..23816be7e --- /dev/null +++ b/lib/python/qmk/tests/test_qmk_path.py | |||
@@ -0,0 +1,12 @@ | |||
1 | import os | ||
2 | |||
3 | import qmk.path | ||
4 | |||
5 | def test_keymap_onekey_pytest(): | ||
6 | path = qmk.path.keymap('handwired/onekey/pytest') | ||
7 | assert path == 'keyboards/handwired/onekey/keymaps' | ||
8 | |||
9 | |||
10 | def test_normpath(): | ||
11 | path = qmk.path.normpath('lib/python') | ||
12 | assert path == os.environ['ORIG_CWD'] + '/lib/python' | ||