Browse Source

Fix `test_json2c_no_json()` (#20756)

pull/20330/merge
Ryan 1 year ago
committed by GitHub
parent
commit
578102b400
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 16 deletions
  1. +1
    -1
      keyboards/handwired/pytest/basic/info.json
  2. +0
    -6
      keyboards/handwired/pytest/config.h
  3. +5
    -0
      keyboards/handwired/pytest/info.json
  4. +7
    -7
      keyboards/handwired/pytest/macro/info.json
  5. +1
    -1
      lib/python/qmk/tests/minimal_info.json
  6. +1
    -1
      lib/python/qmk/tests/test_cli_commands.py

+ 1
- 1
keyboards/handwired/pytest/basic/info.json View File

@ -2,7 +2,7 @@
"layouts": {
"LAYOUT_custom": {
"layout": [
{ "label": "KC_Q", "matrix": [0, 0], "x": 0, "y": 0 }
{"label": "KC_Q", "matrix": [0, 0], "x": 0, "y": 0}
]
}
}


+ 0
- 6
keyboards/handwired/pytest/config.h View File

@ -1,6 +0,0 @@
#pragma once
#define MATRIX_COL_PINS { F4 }
#define MATRIX_ROW_PINS { F5 }
#define DIODE_DIRECTION COL2ROW

+ 5
- 0
keyboards/handwired/pytest/info.json View File

@ -7,6 +7,11 @@
"pid": "0x6465",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["F4"],
"rows": ["F5"]
},
"diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {


+ 7
- 7
keyboards/handwired/pytest/macro/info.json View File

@ -1,10 +1,10 @@
{
"maintainer": "qmk",
"layouts": {
"LAYOUT_custom": {
"layout": [
{ "label": "KC_Q", "matrix": [0, 0], "x": 0, "y": 0 }
]
"maintainer": "qmk",
"layouts": {
"LAYOUT_custom": {
"layout": [
{"label": "KC_Q", "matrix": [0, 0], "x": 0, "y": 0}
]
}
}
}
}

+ 1
- 1
lib/python/qmk/tests/minimal_info.json View File

@ -4,7 +4,7 @@
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0 }
{"label": "KC_A", "matrix": [0, 0], "x": 0, "y": 0}
]
}
}


+ 1
- 1
lib/python/qmk/tests/test_cli_commands.py View File

@ -168,7 +168,7 @@ def test_json2c_wrong_json():
def test_json2c_no_json():
result = check_subcommand('json2c', 'keyboards/handwired/pytest/config.h')
result = check_subcommand('json2c', 'keyboards/handwired/pytest/basic/keymaps/default/keymap.c')
check_returncode(result, [1])
assert 'Invalid JSON encountered' in result.stdout


Loading…
Cancel
Save