diff options
| author | Ryan <fauxpark@gmail.com> | 2023-03-13 23:20:54 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-13 23:20:54 +1100 |
| commit | 91e0457b0ee8f1b7160d8f7591e0f60195db5455 (patch) | |
| tree | 67732e1f2a3f8f16bd101518a76f66d72ea0fb64 /lib/python/qmk/tests | |
| parent | cf5e9d172d38e9a9b65cb568631259bf1e2bfec6 (diff) | |
JSON encoder: improve sorting of layout dict keys (#19974)
Diffstat (limited to 'lib/python/qmk/tests')
| -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 e598b281a6..28838ec368 100644 --- a/lib/python/qmk/tests/test_cli_commands.py +++ b/lib/python/qmk/tests/test_cli_commands.py | |||
| @@ -291,7 +291,7 @@ def test_generate_version_h(): | |||
| 291 | def test_format_json_keyboard(): | 291 | def test_format_json_keyboard(): |
| 292 | result = check_subcommand('format-json', '--format', 'keyboard', 'lib/python/qmk/tests/minimal_info.json') | 292 | result = check_subcommand('format-json', '--format', 'keyboard', 'lib/python/qmk/tests/minimal_info.json') |
| 293 | check_returncode(result) | 293 | check_returncode(result) |
| 294 | assert result.stdout == '{\n "keyboard_name": "tester",\n "maintainer": "qmk",\n "layouts": {\n "LAYOUT": {\n "layout": [\n { "label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0 }\n ]\n }\n }\n}\n' | 294 | assert result.stdout == '{\n "keyboard_name": "tester",\n "maintainer": "qmk",\n "layouts": {\n "LAYOUT": {\n "layout": [\n {"label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0}\n ]\n }\n }\n}\n' |
| 295 | 295 | ||
| 296 | 296 | ||
| 297 | def test_format_json_keymap(): | 297 | def test_format_json_keymap(): |
| @@ -303,7 +303,7 @@ def test_format_json_keymap(): | |||
| 303 | def test_format_json_keyboard_auto(): | 303 | def test_format_json_keyboard_auto(): |
| 304 | result = check_subcommand('format-json', '--format', 'auto', 'lib/python/qmk/tests/minimal_info.json') | 304 | result = check_subcommand('format-json', '--format', 'auto', 'lib/python/qmk/tests/minimal_info.json') |
| 305 | check_returncode(result) | 305 | check_returncode(result) |
| 306 | assert result.stdout == '{\n "keyboard_name": "tester",\n "maintainer": "qmk",\n "layouts": {\n "LAYOUT": {\n "layout": [\n { "label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0 }\n ]\n }\n }\n}\n' | 306 | assert result.stdout == '{\n "keyboard_name": "tester",\n "maintainer": "qmk",\n "layouts": {\n "LAYOUT": {\n "layout": [\n {"label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0}\n ]\n }\n }\n}\n' |
| 307 | 307 | ||
| 308 | 308 | ||
| 309 | def test_format_json_keymap_auto(): | 309 | def test_format_json_keymap_auto(): |
