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
|
|
|
|
2021-01-05 01:52:31 +01:00
|
|
|
def test_keymap_pytest_basic():
|
2023-05-19 08:05:43 +02:00
|
|
|
path = qmk.path.keymap('handwired/pytest/basic', 'default')
|
|
|
|
assert path.samefile('keyboards/handwired/pytest/basic/keymaps/default')
|
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')
|