diff options
| author | Ryan <fauxpark@gmail.com> | 2022-09-22 03:31:57 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-21 18:31:57 +0100 |
| commit | 2f48d300f4fdce10d4183279f68cf4fe355cf605 (patch) | |
| tree | f71b8ddec7e68a9255f783226b4a159438753b2b /lib/python/qmk/tests | |
| parent | fc7f3f17e6bda78fb151d09f73faf4d673ec77af (diff) | |
Normalise info_config.h define generation (#18439)
* Normalise info_config.h define generation
* format
* Fix tests
* Update lib/python/qmk/cli/generate/config_h.py
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'lib/python/qmk/tests')
| -rw-r--r-- | lib/python/qmk/tests/test_cli_commands.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/python/qmk/tests/test_cli_commands.py b/lib/python/qmk/tests/test_cli_commands.py index c8c4e2f80c..9bfc5a0a79 100644 --- a/lib/python/qmk/tests/test_cli_commands.py +++ b/lib/python/qmk/tests/test_cli_commands.py | |||
| @@ -263,16 +263,16 @@ def test_generate_rgb_breathe_table(): | |||
| 263 | def test_generate_config_h(): | 263 | def test_generate_config_h(): |
| 264 | result = check_subcommand('generate-config-h', '-kb', 'handwired/pytest/basic') | 264 | result = check_subcommand('generate-config-h', '-kb', 'handwired/pytest/basic') |
| 265 | check_returncode(result) | 265 | check_returncode(result) |
| 266 | assert '# define DEVICE_VER 0x0001' in result.stdout | 266 | assert '# define DEVICE_VER 0x0001' in result.stdout |
| 267 | assert '# define DIODE_DIRECTION COL2ROW' in result.stdout | 267 | assert '# define DIODE_DIRECTION COL2ROW' in result.stdout |
| 268 | assert '# define MANUFACTURER "none"' in result.stdout | 268 | assert '# define MANUFACTURER "none"' in result.stdout |
| 269 | assert '# define PRODUCT "pytest"' in result.stdout | 269 | assert '# define PRODUCT "pytest"' in result.stdout |
| 270 | assert '# define PRODUCT_ID 0x6465' in result.stdout | 270 | assert '# define PRODUCT_ID 0x6465' in result.stdout |
| 271 | assert '# define VENDOR_ID 0xFEED' in result.stdout | 271 | assert '# define VENDOR_ID 0xFEED' in result.stdout |
| 272 | assert '# define MATRIX_COLS 1' in result.stdout | 272 | assert '# define MATRIX_COLS 1' in result.stdout |
| 273 | assert '# define MATRIX_COL_PINS { F4 }' in result.stdout | 273 | assert '# define MATRIX_COL_PINS { F4 }' in result.stdout |
| 274 | assert '# define MATRIX_ROWS 1' in result.stdout | 274 | assert '# define MATRIX_ROWS 1' in result.stdout |
| 275 | assert '# define MATRIX_ROW_PINS { F5 }' in result.stdout | 275 | assert '# define MATRIX_ROW_PINS { F5 }' in result.stdout |
| 276 | 276 | ||
| 277 | 277 | ||
| 278 | def test_generate_rules_mk(): | 278 | def test_generate_rules_mk(): |
