Added test for missing output.options
This commit is contained in:
parent
e3cddb280a
commit
8aaa07c867
|
|
@ -11,6 +11,7 @@ Tests various errors in the config file
|
||||||
- Inner_1 (malformed)
|
- Inner_1 (malformed)
|
||||||
- No output.name
|
- No output.name
|
||||||
- No output.type
|
- No output.type
|
||||||
|
- No output.options
|
||||||
|
|
||||||
For debug information use:
|
For debug information use:
|
||||||
pytest-3 --log-cli-level debug
|
pytest-3 --log-cli-level debug
|
||||||
|
|
@ -88,3 +89,10 @@ def test_no_type():
|
||||||
ctx.run(EXIT_BAD_CONFIG)
|
ctx.run(EXIT_BAD_CONFIG)
|
||||||
assert ctx.search_err("Output 'PDF' needs a type")
|
assert ctx.search_err("Output 'PDF' needs a type")
|
||||||
ctx.clean_up()
|
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()
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue