diff --git a/tests/test_plot/test_yaml_errors.py b/tests/test_plot/test_yaml_errors.py index 064843d5..5a6098a5 100644 --- a/tests/test_plot/test_yaml_errors.py +++ b/tests/test_plot/test_yaml_errors.py @@ -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() + diff --git a/tests/yaml_samples/error_int_bom_no_field.kiplot.yaml b/tests/yaml_samples/error_int_bom_no_field.kiplot.yaml new file mode 100644 index 00000000..1b70da43 --- /dev/null +++ b/tests/yaml_samples/error_int_bom_no_field.kiplot.yaml @@ -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 +