diff options
Diffstat (limited to 'lib/python/qmk/tests')
| -rw-r--r-- | lib/python/qmk/tests/minimal_info.json | 2 | ||||
| -rw-r--r-- | lib/python/qmk/tests/test_cli_commands.py | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/python/qmk/tests/minimal_info.json b/lib/python/qmk/tests/minimal_info.json index b91c23bd3..11ef12fef 100644 --- a/lib/python/qmk/tests/minimal_info.json +++ b/lib/python/qmk/tests/minimal_info.json | |||
| @@ -1,8 +1,6 @@ | |||
| 1 | { | 1 | { |
| 2 | "keyboard_name": "tester", | 2 | "keyboard_name": "tester", |
| 3 | "maintainer": "qmk", | 3 | "maintainer": "qmk", |
| 4 | "height": 5, | ||
| 5 | "width": 15, | ||
| 6 | "layouts": { | 4 | "layouts": { |
| 7 | "LAYOUT": { | 5 | "LAYOUT": { |
| 8 | "layout": [ | 6 | "layout": [ |
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py index 022b24203..b39fe5e46 100644 --- a/lib/python/qmk/tests/test_cli_commands.py +++ b/lib/python/qmk/tests/test_cli_commands.py | |||
| @@ -273,7 +273,7 @@ def test_generate_layouts(): | |||
| 273 | def test_format_json_keyboard(): | 273 | def test_format_json_keyboard(): |
| 274 | result = check_subcommand('format-json', '--format', 'keyboard', 'lib/python/qmk/tests/minimal_info.json') | 274 | result = check_subcommand('format-json', '--format', 'keyboard', 'lib/python/qmk/tests/minimal_info.json') |
| 275 | check_returncode(result) | 275 | check_returncode(result) |
| 276 | assert result.stdout == '{\n "keyboard_name": "tester",\n "maintainer": "qmk",\n "height": 5,\n "width": 15,\n "layouts": {\n "LAYOUT": {\n "layout": [\n { "label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0 }\n ]\n }\n }\n}\n' | 276 | 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' |
| 277 | 277 | ||
| 278 | 278 | ||
| 279 | def test_format_json_keymap(): | 279 | def test_format_json_keymap(): |
| @@ -285,7 +285,7 @@ def test_format_json_keymap(): | |||
| 285 | def test_format_json_keyboard_auto(): | 285 | def test_format_json_keyboard_auto(): |
| 286 | result = check_subcommand('format-json', '--format', 'auto', 'lib/python/qmk/tests/minimal_info.json') | 286 | result = check_subcommand('format-json', '--format', 'auto', 'lib/python/qmk/tests/minimal_info.json') |
| 287 | check_returncode(result) | 287 | check_returncode(result) |
| 288 | assert result.stdout == '{\n "keyboard_name": "tester",\n "maintainer": "qmk",\n "height": 5,\n "width": 15,\n "layouts": {\n "LAYOUT": {\n "layout": [\n { "label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0 }\n ]\n }\n }\n}\n' | 288 | 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' |
| 289 | 289 | ||
| 290 | 290 | ||
| 291 | def test_format_json_keymap_auto(): | 291 | def test_format_json_keymap_auto(): |
