diff options
author | 2020-10-07 10:46:10 +1100 | |
---|---|---|
committer | 2020-10-06 16:46:10 -0700 | |
commit | 2c9ffd47391b8dec98db94bef9b2f5c14a57cf94 (patch) | |
tree | 57f743159e972e3e2cd215ab256675d3c84d1832 /lib/python/qmk/tests | |
parent | 2013f6313430b977e557e482d30daa279a46e75d (diff) | |
download | qmk_firmware-2c9ffd47391b8dec98db94bef9b2f5c14a57cf94.tar.gz |
CLI: update subcommands to use return instead of exit() (#10323)
Diffstat (limited to 'lib/python/qmk/tests')
-rw-r--r-- | lib/python/qmk/tests/.gitignore | 2 | ||||
-rw-r--r-- | lib/python/qmk/tests/test_cli_commands.py | 3 |
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 000000000..eeb6581b8 --- /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 68f8ed604..0b840b466 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(): |