diff options
| author | Joel Challis <git@zvecr.com> | 2023-05-22 07:03:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-22 07:03:59 +0100 |
| commit | fb056c543765b1c8ed7dae031a36ed2d04b1c718 (patch) | |
| tree | 44f1d9fbbaa7bc3fe35fd6cf7e3d682ea2977c57 /lib/python/qmk/tests/test_cli_commands.py | |
| parent | 595f7db3840ab8155264e948d8ad5be5f8a1d0ed (diff) | |
Update json2c to use dump_lines (#21013)
Diffstat (limited to 'lib/python/qmk/tests/test_cli_commands.py')
| -rw-r--r-- | lib/python/qmk/tests/test_cli_commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py index 13359808a0..1725e3ea79 100644 --- a/lib/python/qmk/tests/test_cli_commands.py +++ b/lib/python/qmk/tests/test_cli_commands.py | |||
| @@ -144,7 +144,7 @@ def test_list_keymaps_no_keyboard_found(): | |||
| 144 | def test_json2c(): | 144 | def test_json2c(): |
| 145 | result = check_subcommand('json2c', 'keyboards/handwired/pytest/has_template/keymaps/default_json/keymap.json') | 145 | result = check_subcommand('json2c', 'keyboards/handwired/pytest/has_template/keymaps/default_json/keymap.json') |
| 146 | check_returncode(result) | 146 | check_returncode(result) |
| 147 | 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' | 147 | 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\n' |
| 148 | 148 | ||
| 149 | 149 | ||
| 150 | def test_json2c_macros(): | 150 | def test_json2c_macros(): |
| @@ -158,7 +158,7 @@ def test_json2c_macros(): | |||
| 158 | def test_json2c_stdin(): | 158 | def test_json2c_stdin(): |
| 159 | result = check_subcommand_stdin('keyboards/handwired/pytest/has_template/keymaps/default_json/keymap.json', 'json2c', '-') | 159 | result = check_subcommand_stdin('keyboards/handwired/pytest/has_template/keymaps/default_json/keymap.json', 'json2c', '-') |
| 160 | check_returncode(result) | 160 | check_returncode(result) |
| 161 | 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' | 161 | 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\n' |
| 162 | 162 | ||
| 163 | 163 | ||
| 164 | def test_json2c_wrong_json(): | 164 | def test_json2c_wrong_json(): |
