keyboard stuff
1import os
2from pathlib import Path
3
4import qmk.path
5
6
7def test_keymap_pytest_basic():
8 path = qmk.path.keymap('handwired/pytest/basic', 'default')
9 assert path.samefile('keyboards/handwired/pytest/basic/keymaps/default')
10
11
12def test_normpath():
13 path = qmk.path.normpath('lib/python')
14 assert path.samefile(Path(os.environ['ORIG_CWD']) / 'lib/python')