diff options
author | Erovia <erovia@users.noreply.github.com> | 2020-01-07 21:54:21 +0100 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2020-02-15 15:19:03 -0800 |
commit | 8eeab1112aa1ca7336f88867a9a2ab680ae94b53 (patch) | |
tree | 60627f2d1aa5f6bb1d3345d9dbb7268b7d6ed3eb /lib/python/qmk/tests/test_cli_commands.py | |
parent | 988bfffca2715df3f227c462533d350ecbeac6c0 (diff) | |
download | qmk_firmware-8eeab1112aa1ca7336f88867a9a2ab680ae94b53.tar.gz qmk_firmware-8eeab1112aa1ca7336f88867a9a2ab680ae94b53.zip |
Fix commandline parsing and flake8 findings, rebase
Fixed commandline and config parsing. Thx @xplusplus.
Rebased on master and fixed merge conflicts.
Diffstat (limited to 'lib/python/qmk/tests/test_cli_commands.py')
-rw-r--r-- | lib/python/qmk/tests/test_cli_commands.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py index 7dc51d247..d88437903 100644 --- a/lib/python/qmk/tests/test_cli_commands.py +++ b/lib/python/qmk/tests/test_cli_commands.py | |||
@@ -55,7 +55,14 @@ def test_list_keyboards(): | |||
55 | # this will fail if handwired/onekey/pytest is removed | 55 | # this will fail if handwired/onekey/pytest is removed |
56 | assert 'handwired/onekey/pytest' in result.stdout | 56 | assert 'handwired/onekey/pytest' in result.stdout |
57 | 57 | ||
58 | |||
58 | def test_list_keymaps(): | 59 | def test_list_keymaps(): |
59 | result = check_subcommand("list_keymaps", "-kb", "planck/ez") | 60 | result = check_subcommand("list-keymaps", "-kb", "planck/ez") |
60 | assert result.returncode == 0 | 61 | assert result.returncode == 0 |
61 | assert "planck/ez:default" and "planck/ez:drashna" in result.stdout | 62 | assert "planck/ez:default" and "planck/ez:drashna" in result.stdout |
63 | |||
64 | |||
65 | def test_list_keymaps_no_keyboard_found(): | ||
66 | result = check_subcommand("list-keymaps", "-kb", "asdfghjkl") | ||
67 | assert result.returncode == 0 | ||
68 | assert "does not exist" in result.stdout | ||