[General] Better support for wrong pre-flight options

Closes #360
This commit is contained in:
Salvador E. Tropea 2023-01-10 14:54:29 -03:00
parent c35e218857
commit ac65cc022e
3 changed files with 17 additions and 0 deletions

View File

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- General:
- Support for `groups` of `outputs`
- Internal templates import
- Better support for wrong pre-flight options (#360)
- New output:
- `vrml` export the 3D model in Virtual Reality Modeling Language (#349)
- New internal filters:

View File

@ -707,3 +707,11 @@ def test_extends_1(test_dir):
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err(r"In section 'position_mine' \(position\): Unknown output `position2` in `extends`")
ctx.clean_up(keep_project=True)
def test_pre_list_instead_of_dict(test_dir):
""" Extend an undefined output """
ctx = context.TestContext(test_dir, PRJ, 'error_pre_list_instead_of_dict_issue_360')
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err(r"Found .*list.* instead of dict")
ctx.clean_up(keep_project=True)

View File

@ -0,0 +1,8 @@
kibot:
version: 1
preflight:
annotate_pcb:
- top_main_axis: y
- top_main_ascending: true