Added test for missing field in column list (internal BoM)

This commit is contained in:
SET 2020-08-12 17:34:05 -03:00
parent ec70ac23c3
commit 5a1a38a0ca
2 changed files with 31 additions and 0 deletions

View File

@ -484,3 +484,11 @@ def test_unk_global():
assert ctx.search_err("Unknown global option")
ctx.search_err("WARNING:Unknown global option")
ctx.clean_up()
def test_error_int_bom_no_field():
ctx = context.TestContextSCH('test_error_int_bom_no_field', 'links', 'error_int_bom_no_field', '')
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err("Missing or empty `field` in columns list")
ctx.clean_up()

View File

@ -0,0 +1,23 @@
# 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: Row
name: Renglón
- name: Referencias
- field: Part
name: Componente
- field: Value
name: Valor
- field: digikey#
name: Código Digi-Key
- field: Quantity Per PCB
name: Cantidad por PCB