summaryrefslogtreecommitdiff
path: root/lib/python/qmk/tests
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-06-19 04:37:47 +1000
committerGitHub <noreply@github.com>2020-06-18 19:37:47 +0100
commitdb80209e697770cca0ba44e437efa548247b387f (patch)
treec24f46b26d83f23aeaff302968e84b07c25519e2 /lib/python/qmk/tests
parent716924de3e07eb4a6f39a9c8da9ba0fc64c7f796 (diff)
Parse version better in `qmk doctor` GCC version checks (#9324)
Diffstat (limited to 'lib/python/qmk/tests')
-rw-r--r--lib/python/qmk/tests/test_cli_commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py
index dce270de83..68f8ed6047 100644
--- a/lib/python/qmk/tests/test_cli_commands.py
+++ b/lib/python/qmk/tests/test_cli_commands.py
@@ -115,7 +115,7 @@ def test_list_keymaps_no_keyboard_found():
def test_json2c():
result = check_subcommand('json2c', 'keyboards/handwired/onekey/keymaps/default_json/keymap.json')
check_returncode(result, 0)
- assert result.stdout == '#include QMK_KEYBOARD_H\nconst uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {\t[0] = LAYOUT(KC_A)};\n\n'
+ assert result.stdout == '#include QMK_KEYBOARD_H\nconst uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {\t[0] = LAYOUT_ortho_1x1(KC_A)};\n\n'
def test_info():
@@ -132,7 +132,7 @@ def test_info_keyboard_render():
check_returncode(result)
assert 'Keyboard Name: handwired/onekey/pytest' in result.stdout
assert 'Processor: STM32F303' in result.stdout
- assert 'Layout:' in result.stdout
+ assert 'Layouts:' in result.stdout
assert 'k0' in result.stdout
@@ -149,6 +149,6 @@ def test_info_matrix_render():
check_returncode(result)
assert 'Keyboard Name: handwired/onekey/pytest' in result.stdout
assert 'Processor: STM32F303' in result.stdout
- assert 'LAYOUT' in result.stdout
+ assert 'LAYOUT_ortho_1x1' in result.stdout
assert '│0A│' in result.stdout
- assert 'Matrix for "LAYOUT"' in result.stdout
+ assert 'Matrix for "LAYOUT_ortho_1x1"' in result.stdout