qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

test_qmk_path.py (363B)


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