aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/tests/test_cli_commands.py
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-11-05 08:08:52 +1100
committerGitHub <noreply@github.com>2021-11-05 08:08:52 +1100
commit94018367278f44fcf3eab8a86525f2b257ecf4ba (patch)
treec926797b833b2c51f3b458bd0726944b21fdf0a8 /lib/python/qmk/tests/test_cli_commands.py
parent45a8176e325130775b51058199e69aa8f06c88cc (diff)
downloadqmk_firmware-94018367278f44fcf3eab8a86525f2b257ecf4ba.tar.gz
qmk_firmware-94018367278f44fcf3eab8a86525f2b257ecf4ba.zip
Map `PRODUCT` define to `keyboard_name` (#14372)
* Map `PRODUCT` define to `keyboard_name` * Fix tests * Fix last test
Diffstat (limited to 'lib/python/qmk/tests/test_cli_commands.py')
-rw-r--r--lib/python/qmk/tests/test_cli_commands.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py
index e4eaef899..9f2c258ab 100644
--- a/lib/python/qmk/tests/test_cli_commands.py
+++ b/lib/python/qmk/tests/test_cli_commands.py
@@ -151,7 +151,7 @@ def test_json2c_stdin():
151def test_info(): 151def test_info():
152 result = check_subcommand('info', '-kb', 'handwired/pytest/basic') 152 result = check_subcommand('info', '-kb', 'handwired/pytest/basic')
153 check_returncode(result) 153 check_returncode(result)
154 assert 'Keyboard Name: handwired/pytest/basic' in result.stdout 154 assert 'Keyboard Name: pytest' in result.stdout
155 assert 'Processor: atmega32u4' in result.stdout 155 assert 'Processor: atmega32u4' in result.stdout
156 assert 'Layout:' not in result.stdout 156 assert 'Layout:' not in result.stdout
157 assert 'k0' not in result.stdout 157 assert 'k0' not in result.stdout
@@ -160,7 +160,7 @@ def test_info():
160def test_info_keyboard_render(): 160def test_info_keyboard_render():
161 result = check_subcommand('info', '-kb', 'handwired/pytest/basic', '-l') 161 result = check_subcommand('info', '-kb', 'handwired/pytest/basic', '-l')
162 check_returncode(result) 162 check_returncode(result)
163 assert 'Keyboard Name: handwired/pytest/basic' in result.stdout 163 assert 'Keyboard Name: pytest' in result.stdout
164 assert 'Processor: atmega32u4' in result.stdout 164 assert 'Processor: atmega32u4' in result.stdout
165 assert 'Layouts:' in result.stdout 165 assert 'Layouts:' in result.stdout
166 assert 'k0' in result.stdout 166 assert 'k0' in result.stdout
@@ -169,7 +169,7 @@ def test_info_keyboard_render():
169def test_info_keymap_render(): 169def test_info_keymap_render():
170 result = check_subcommand('info', '-kb', 'handwired/pytest/basic', '-km', 'default_json') 170 result = check_subcommand('info', '-kb', 'handwired/pytest/basic', '-km', 'default_json')
171 check_returncode(result) 171 check_returncode(result)
172 assert 'Keyboard Name: handwired/pytest/basic' in result.stdout 172 assert 'Keyboard Name: pytest' in result.stdout
173 assert 'Processor: atmega32u4' in result.stdout 173 assert 'Processor: atmega32u4' in result.stdout
174 174
175 if is_windows: 175 if is_windows:
@@ -181,7 +181,7 @@ def test_info_keymap_render():
181def test_info_matrix_render(): 181def test_info_matrix_render():
182 result = check_subcommand('info', '-kb', 'handwired/pytest/basic', '-m') 182 result = check_subcommand('info', '-kb', 'handwired/pytest/basic', '-m')
183 check_returncode(result) 183 check_returncode(result)
184 assert 'Keyboard Name: handwired/pytest/basic' in result.stdout 184 assert 'Keyboard Name: pytest' in result.stdout
185 assert 'Processor: atmega32u4' in result.stdout 185 assert 'Processor: atmega32u4' in result.stdout
186 assert 'LAYOUT_ortho_1x1' in result.stdout 186 assert 'LAYOUT_ortho_1x1' in result.stdout
187 187
@@ -242,7 +242,7 @@ def test_generate_config_h():
242 assert '# define DESCRIPTION handwired/pytest/basic' in result.stdout 242 assert '# define DESCRIPTION handwired/pytest/basic' in result.stdout
243 assert '# define DIODE_DIRECTION COL2ROW' in result.stdout 243 assert '# define DIODE_DIRECTION COL2ROW' in result.stdout
244 assert '# define MANUFACTURER none' in result.stdout 244 assert '# define MANUFACTURER none' in result.stdout
245 assert '# define PRODUCT handwired/pytest/basic' in result.stdout 245 assert '# define PRODUCT pytest' in result.stdout
246 assert '# define PRODUCT_ID 0x6465' in result.stdout 246 assert '# define PRODUCT_ID 0x6465' in result.stdout
247 assert '# define VENDOR_ID 0xFEED' in result.stdout 247 assert '# define VENDOR_ID 0xFEED' in result.stdout
248 assert '# define MATRIX_COLS 1' in result.stdout 248 assert '# define MATRIX_COLS 1' in result.stdout