CLI: update subcommands to use return instead of exit() (#10323)

This commit is contained in:
Ryan
2020-10-07 10:46:10 +11:00
committed by Drashna Jael're
parent cce4f22e3a
commit ae5ee61e7b
9 changed files with 21 additions and 19 deletions

2
lib/python/qmk/tests/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
# Ignore generated info.json from pytest
info.json

View File

@@ -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():