logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

test_qmk_path.py (363B)


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