summaryrefslogtreecommitdiff
path: root/lib/python/qmk/tests
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-11-05 06:18:47 +1100
committerGitHub <noreply@github.com>2020-11-04 19:18:47 +0000
commit7ef98e7f6164afd1d825a6ce8efa20560927fcc9 (patch)
tree74734d3984caae26dfebdecdfd79e35d72b81500 /lib/python/qmk/tests
parentd46fa2274cac7d1dad2e6c684d3fabf729efaa2e (diff)
CLI: Add `qmk clean` (#10785)
Diffstat (limited to 'lib/python/qmk/tests')
-rw-r--r--lib/python/qmk/tests/test_cli_commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py
index 7c261db6cd..df5f047da7 100644
--- a/lib/python/qmk/tests/test_cli_commands.py
+++ b/lib/python/qmk/tests/test_cli_commands.py
@@ -184,3 +184,9 @@ def test_c2json_nocpp():
result = check_subcommand("c2json", "--no-cpp", "-kb", "handwired/onekey/pytest", "-km", "default", "keyboards/handwired/onekey/keymaps/pytest_nocpp/keymap.c")
check_returncode(result)
assert result.stdout.strip() == '{"keyboard": "handwired/onekey/pytest", "documentation": "This file is a keymap.json file for handwired/onekey/pytest", "keymap": "default", "layout": "LAYOUT", "layers": [["KC_ENTER"]]}'
+
+
+def test_clean():
+ result = check_subcommand('clean', '-a')
+ check_returncode(result)
+ assert result.stdout.count('done') == 2