diff options
Diffstat (limited to 'lib/python/qmk/tests')
| -rw-r--r-- | lib/python/qmk/tests/test_qmk_path.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/qmk/tests/test_qmk_path.py b/lib/python/qmk/tests/test_qmk_path.py index d6961a0f6..74db7b3e2 100644 --- a/lib/python/qmk/tests/test_qmk_path.py +++ b/lib/python/qmk/tests/test_qmk_path.py | |||
| @@ -1,13 +1,14 @@ | |||
| 1 | import os | 1 | import os |
| 2 | from pathlib import Path | ||
| 2 | 3 | ||
| 3 | import qmk.path | 4 | import qmk.path |
| 4 | 5 | ||
| 5 | 6 | ||
| 6 | def test_keymap_onekey_pytest(): | 7 | def test_keymap_onekey_pytest(): |
| 7 | path = qmk.path.keymap('handwired/onekey/pytest') | 8 | path = qmk.path.keymap('handwired/onekey/pytest') |
| 8 | assert path == 'keyboards/handwired/onekey/keymaps' | 9 | assert path.samefile('keyboards/handwired/onekey/keymaps') |
| 9 | 10 | ||
| 10 | 11 | ||
| 11 | def test_normpath(): | 12 | def test_normpath(): |
| 12 | path = qmk.path.normpath('lib/python') | 13 | path = qmk.path.normpath('lib/python') |
| 13 | assert path == os.path.join(os.environ['ORIG_CWD'], 'lib/python') | 14 | assert path.samefile(Path(os.environ['ORIG_CWD']) / 'lib/python') |
