summaryrefslogtreecommitdiff
path: root/lib/python/qmk/tests
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-10-07 10:46:10 +1100
committerDrashna Jael're <drashna@live.com>2021-01-12 22:43:31 -0800
commitae5ee61e7bbf24d3dc36c1a309d3af25a00a5444 (patch)
treeb44b65ac08b5e823eab84e349cdc0e260d748e81 /lib/python/qmk/tests
parentcce4f22e3a88cce06d8e199756984642c8eb5c44 (diff)
CLI: update subcommands to use return instead of exit() (#10323)
Diffstat (limited to 'lib/python/qmk/tests')
-rw-r--r--lib/python/qmk/tests/.gitignore2
-rw-r--r--lib/python/qmk/tests/test_cli_commands.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/qmk/tests/.gitignore b/lib/python/qmk/tests/.gitignore
new file mode 100644
index 0000000000..eeb6581b87
--- /dev/null
+++ b/lib/python/qmk/tests/.gitignore
@@ -0,0 +1,2 @@
+# Ignore generated info.json from pytest
+info.json
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py
index 68f8ed6047..0b840b4668 100644
--- a/lib/python/qmk/tests/test_cli_commands.py
+++ b/lib/python/qmk/tests/test_cli_commands.py
@@ -45,8 +45,9 @@ def test_config():
def test_kle2json():
- result = check_subcommand('kle2json', 'kle.txt', '-f')
+ result = check_subcommand('kle2json', 'lib/python/qmk/tests/kle.txt', '-f')
check_returncode(result)
+ assert 'Wrote out' in result.stdout
def test_doctor():