2019-08-22 06:40:24 +00:00
|
|
|
import os
|
2020-02-17 19:42:11 +00:00
|
|
|
from pathlib import Path
|
2019-08-22 06:40:24 +00:00
|
|
|
|
|
|
|
import qmk.path
|
|
|
|
|
2019-08-22 06:46:51 +00:00
|
|
|
|
2021-01-05 00:52:31 +00:00
|
|
|
def test_keymap_pytest_basic():
|
2023-05-19 06:05:43 +00:00
|
|
|
path = qmk.path.keymap('handwired/pytest/basic', 'default')
|
|
|
|
assert path.samefile('keyboards/handwired/pytest/basic/keymaps/default')
|
2019-08-22 06:40:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_normpath():
|
|
|
|
path = qmk.path.normpath('lib/python')
|
2020-02-17 19:42:11 +00:00
|
|
|
assert path.samefile(Path(os.environ['ORIG_CWD']) / 'lib/python')
|