Added test for wrong logo format.

This commit is contained in:
SET 2020-08-12 20:35:34 -03:00
parent 3df9e8b1c7
commit b60b0ef680
2 changed files with 20 additions and 0 deletions

View File

@ -519,3 +519,10 @@ def test_error_int_bom_invalid_col():
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err("Invalid column name")
ctx.clean_up()
def test_error_int_bom_logo_format():
ctx = context.TestContextSCH('test_error_int_bom_logo_format', 'links', 'error_int_bom_logo_format', '')
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err("Only PNG images are supported for the logo")
ctx.clean_up()

View File

@ -0,0 +1,13 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in CSV format"
type: bom
dir: BoM
options:
html:
logo: 'README.md'