瀏覽代碼

Add test for list_keymaps

Erovia 5 年之前
父節點
當前提交
f8002828ca
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      lib/python/qmk/tests/test_cli_commands.py

+ 5 - 0
lib/python/qmk/tests/test_cli_commands.py

@@ -54,3 +54,8 @@ def test_list_keyboards():
     # check to see if a known keyboard is returned
     # check to see if a known keyboard is returned
     # this will fail if handwired/onekey/pytest is removed
     # this will fail if handwired/onekey/pytest is removed
     assert 'handwired/onekey/pytest' in result.stdout
     assert 'handwired/onekey/pytest' in result.stdout
+
+def test_list_keymaps():
+    result = check_subcommand("list_keymaps", "-kb", "planck/ez")
+    assert result.returncode == 0
+    assert "planck/ez:default" and "planck/ez:drashna" in result.stdout