From f8002828cac83272e5804bf705e20d07ac64e7a0 Mon Sep 17 00:00:00 2001 From: Erovia Date: Sun, 13 Oct 2019 19:16:19 +0200 Subject: [PATCH] Add test for list_keymaps --- lib/python/qmk/tests/test_cli_commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py index f1a92d9a31..7dc51d2470 100644 --- a/lib/python/qmk/tests/test_cli_commands.py +++ b/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 # this will fail if handwired/onekey/pytest is removed 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