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