Added test for invalid column name
This commit is contained in:
parent
535949e159
commit
3df9e8b1c7
|
|
@ -512,3 +512,10 @@ def test_error_int_bom_unknown_style():
|
||||||
ctx.run(EXIT_BAD_CONFIG)
|
ctx.run(EXIT_BAD_CONFIG)
|
||||||
assert ctx.search_err("Unknown style .?bogus.?")
|
assert ctx.search_err("Unknown style .?bogus.?")
|
||||||
ctx.clean_up()
|
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()
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
Loading…
Reference in New Issue