aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/qmk/tests')
-rw-r--r--lib/python/qmk/tests/test_cli_commands.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py
index d13e42d40..afdbc8142 100644
--- a/lib/python/qmk/tests/test_cli_commands.py
+++ b/lib/python/qmk/tests/test_cli_commands.py
@@ -7,7 +7,7 @@ is_windows = 'windows' in platform.platform().lower()
7 7
8 8
9def check_subcommand(command, *args): 9def check_subcommand(command, *args):
10 cmd = ['bin/qmk', command, *args] 10 cmd = ['qmk', command, *args]
11 result = cli.run(cmd, stdin=DEVNULL, combined_output=True) 11 result = cli.run(cmd, stdin=DEVNULL, combined_output=True)
12 return result 12 return result
13 13
@@ -16,7 +16,7 @@ def check_subcommand_stdin(file_to_read, command, *args):
16 """Pipe content of a file to a command and return output. 16 """Pipe content of a file to a command and return output.
17 """ 17 """
18 with open(file_to_read, encoding='utf-8') as my_file: 18 with open(file_to_read, encoding='utf-8') as my_file:
19 cmd = ['bin/qmk', command, *args] 19 cmd = ['qmk', command, *args]
20 result = cli.run(cmd, stdin=my_file, combined_output=True) 20 result = cli.run(cmd, stdin=my_file, combined_output=True)
21 return result 21 return result
22 22
@@ -61,12 +61,6 @@ def test_flash_bootloaders():
61 check_returncode(result, [1]) 61 check_returncode(result, [1])
62 62
63 63
64def test_config():
65 result = check_subcommand('config')
66 check_returncode(result)
67 assert 'general.color' in result.stdout
68
69
70def test_kle2json(): 64def test_kle2json():
71 result = check_subcommand('kle2json', 'lib/python/qmk/tests/kle.txt', '-f') 65 result = check_subcommand('kle2json', 'lib/python/qmk/tests/kle.txt', '-f')
72 check_returncode(result) 66 check_returncode(result)