Added test for missing output.options

This commit is contained in:
Salvador E. Tropea 2020-05-26 13:40:16 -03:00
parent e3cddb280a
commit 8aaa07c867
2 changed files with 21 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Tests various errors in the config file
- Inner_1 (malformed)
- No output.name
- No output.type
- No output.options
For debug information use:
pytest-3 --log-cli-level debug
@ -88,3 +89,10 @@ def test_no_type():
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err("Output 'PDF' needs a type")
ctx.clean_up()
def test_no_options():
ctx = context.TestContext('ErrorNoOptions', '3Rs', 'error_no_options', None)
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err("Output 'PDF' needs options")
ctx.clean_up()

View File

@ -0,0 +1,13 @@
kiplot:
version: 1
outputs:
- name: PDF
comment: "PDF files"
type: pdf
dir: PDF
layers:
- layer: F.Cu
suffix: F_Cu
- layer: F.Bogus
suffix: B_Silks