Added test for invalid column name

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

View File

@ -512,3 +512,10 @@ def test_error_int_bom_unknown_style():
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err("Unknown style .?bogus.?")
ctx.clean_up()
def test_error_int_bom_invalid_col():
ctx = context.TestContextSCH('test_error_int_bom_invalid_col', 'links', 'error_int_bom_invalid_col', '')
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err("Invalid column name")
ctx.clean_up()

View File

@ -0,0 +1,22 @@
# Example KiPlot config file
kiplot:
version: 1
outputs:
- name: 'bom_internal'
comment: "Bill of Materials in CSV format"
type: bom
dir: BoM
options:
columns:
- field: Rowenta
name: Renglón
- field: Part
name: Componente
- field: Value
name: Valor
- field: digikey#
name: Código Digi-Key
- field: Quantity Per PCB
name: Cantidad por PCB