From b60b0ef6802ce468c85544c917482e6bbf8d12eb Mon Sep 17 00:00:00 2001 From: SET Date: Wed, 12 Aug 2020 20:35:34 -0300 Subject: [PATCH] Added test for wrong logo format. --- tests/test_plot/test_yaml_errors.py | 7 +++++++ .../error_int_bom_logo_format.kiplot.yaml | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tests/yaml_samples/error_int_bom_logo_format.kiplot.yaml diff --git a/tests/test_plot/test_yaml_errors.py b/tests/test_plot/test_yaml_errors.py index 34115bdb..7dc7c856 100644 --- a/tests/test_plot/test_yaml_errors.py +++ b/tests/test_plot/test_yaml_errors.py @@ -519,3 +519,10 @@ def test_error_int_bom_invalid_col(): ctx.run(EXIT_BAD_CONFIG) assert ctx.search_err("Invalid column name") ctx.clean_up() + + +def test_error_int_bom_logo_format(): + ctx = context.TestContextSCH('test_error_int_bom_logo_format', 'links', 'error_int_bom_logo_format', '') + ctx.run(EXIT_BAD_CONFIG) + assert ctx.search_err("Only PNG images are supported for the logo") + ctx.clean_up() diff --git a/tests/yaml_samples/error_int_bom_logo_format.kiplot.yaml b/tests/yaml_samples/error_int_bom_logo_format.kiplot.yaml new file mode 100644 index 00000000..f6bc1111 --- /dev/null +++ b/tests/yaml_samples/error_int_bom_logo_format.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: 'README.md' +