2019-08-21 23:40:24 -07:00
|
|
|
import os
|
2020-02-17 11:42:11 -08:00
|
|
|
from pathlib import Path
|
2019-08-21 23:40:24 -07:00
|
|
|
|
|
|
|
import qmk.path
|
|
|
|
|
2019-08-21 23:46:51 -07:00
|
|
|
|
2019-08-21 23:40:24 -07:00
|
|
|
def test_keymap_onekey_pytest():
|
|
|
|
path = qmk.path.keymap('handwired/onekey/pytest')
|
2020-02-17 11:42:11 -08:00
|
|
|
assert path.samefile('keyboards/handwired/onekey/keymaps')
|
2019-08-21 23:40:24 -07:00
|
|
|
|
|
|
|
|
|
|
|
def test_normpath():
|
|
|
|
path = qmk.path.normpath('lib/python')
|
2020-02-17 11:42:11 -08:00
|
|
|
assert path.samefile(Path(os.environ['ORIG_CWD']) / 'lib/python')
|