You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
295 B

  1. import os
  2. import qmk.path
  3. def test_keymap_onekey_pytest():
  4. path = qmk.path.keymap('handwired/onekey/pytest')
  5. assert path == 'keyboards/handwired/onekey/keymaps'
  6. def test_normpath():
  7. path = qmk.path.normpath('lib/python')
  8. assert path == os.environ['ORIG_CWD'] + '/lib/python'