diff --git a/tests/test_plot/test_yaml_errors.py b/tests/test_plot/test_yaml_errors.py index 5a6098a5..fefac177 100644 --- a/tests/test_plot/test_yaml_errors.py +++ b/tests/test_plot/test_yaml_errors.py @@ -492,3 +492,24 @@ def test_error_int_bom_no_field(): assert ctx.search_err("Missing or empty `field` in columns list") ctx.clean_up() + +def test_error_int_bom_miss_logo(): + ctx = context.TestContextSCH('test_error_int_bom_miss_logo', 'links', 'error_int_bom_miss_logo', '') + ctx.run(EXIT_BAD_CONFIG) + assert ctx.search_err("Missing logo file") + ctx.clean_up() + + +def test_error_int_bom_miss_style(): + ctx = context.TestContextSCH('test_error_int_bom_miss_style', 'links', 'error_int_bom_miss_style', '') + ctx.run(EXIT_BAD_CONFIG) + assert ctx.search_err("Missing style file") + ctx.clean_up() + + +def test_error_int_bom_unknown_style(): + ctx = context.TestContextSCH('test_error_int_bom_unknown_style', 'links', 'error_int_bom_unknown_style', '') + ctx.run(EXIT_BAD_CONFIG) + assert ctx.search_err("Unknown style .?bogus.?") + ctx.clean_up() + diff --git a/tests/yaml_samples/error_int_bom_miss_logo.kiplot.yaml b/tests/yaml_samples/error_int_bom_miss_logo.kiplot.yaml new file mode 100644 index 00000000..dc270ec6 --- /dev/null +++ b/tests/yaml_samples/error_int_bom_miss_logo.kiplot.yaml @@ -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: 'bogus' + diff --git a/tests/yaml_samples/error_int_bom_miss_style.kiplot.yaml b/tests/yaml_samples/error_int_bom_miss_style.kiplot.yaml new file mode 100644 index 00000000..7ebc54ae --- /dev/null +++ b/tests/yaml_samples/error_int_bom_miss_style.kiplot.yaml @@ -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: + style: 'bogus' + diff --git a/tests/yaml_samples/error_int_bom_unknown_style.kiplot.yaml b/tests/yaml_samples/error_int_bom_unknown_style.kiplot.yaml new file mode 100644 index 00000000..a56659aa --- /dev/null +++ b/tests/yaml_samples/error_int_bom_unknown_style.kiplot.yaml @@ -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: + xlsx: + style: 'bogus' + diff --git a/tests/yaml_samples/int_bom_simple_html_2.kiplot.yaml b/tests/yaml_samples/int_bom_simple_html_2.kiplot.yaml index d9b63447..1df08442 100644 --- a/tests/yaml_samples/int_bom_simple_html_2.kiplot.yaml +++ b/tests/yaml_samples/int_bom_simple_html_2.kiplot.yaml @@ -10,3 +10,4 @@ outputs: options: html: title: '' + style: '' diff --git a/tests/yaml_samples/int_bom_simple_html_7.kiplot.yaml b/tests/yaml_samples/int_bom_simple_html_7.kiplot.yaml new file mode 100644 index 00000000..0cfbebb6 --- /dev/null +++ b/tests/yaml_samples/int_bom_simple_html_7.kiplot.yaml @@ -0,0 +1,15 @@ +# Example KiPlot config file +kiplot: + version: 1 + +outputs: + - name: 'bom_internal' + comment: "Bill of Materials in HTML format" + type: bom + dir: BoM + options: + html: + logo: 'bogus' + title: '' + hide_pcb_info: true + hide_stats_info: true diff --git a/tests/yaml_samples/int_bom_simple_xlsx_2.kiplot.yaml b/tests/yaml_samples/int_bom_simple_xlsx_2.kiplot.yaml index d52e22c2..20d199d4 100644 --- a/tests/yaml_samples/int_bom_simple_xlsx_2.kiplot.yaml +++ b/tests/yaml_samples/int_bom_simple_xlsx_2.kiplot.yaml @@ -11,4 +11,4 @@ outputs: format: XLSX xlsx: title: '' - + style: ''