From ee6238a2ce8fadeba4a450655b9c622083028fca Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 26 May 2020 14:01:52 -0300 Subject: [PATCH] Added test for iBoM without options. --- tests/test_plot/test_ibom.py | 8 ++++++++ tests/yaml_samples/ibom_no_ops.kiplot.yaml | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/yaml_samples/ibom_no_ops.kiplot.yaml diff --git a/tests/test_plot/test_ibom.py b/tests/test_plot/test_ibom.py index 342df95b..182a800d 100644 --- a/tests/test_plot/test_ibom.py +++ b/tests/test_plot/test_ibom.py @@ -31,3 +31,11 @@ def test_ibom(): html = name+'.html' ctx.expect_out_file(html) ctx.clean_up() + + +def test_ibom_no_ops(): + prj = 'bom' + ctx = context.TestContext('BoM_interactiveNoOps', prj, 'ibom_no_ops', BOM_DIR) + ctx.run() + ctx.expect_out_file(os.path.join(BOM_DIR, 'ibom.html')) + ctx.clean_up() diff --git a/tests/yaml_samples/ibom_no_ops.kiplot.yaml b/tests/yaml_samples/ibom_no_ops.kiplot.yaml new file mode 100644 index 00000000..90b8c9e7 --- /dev/null +++ b/tests/yaml_samples/ibom_no_ops.kiplot.yaml @@ -0,0 +1,10 @@ +# Example KiPlot config file +kiplot: + version: 1 + +outputs: + - name: 'interactive_bom' + comment: "Interactive Bill of Materials (HTML)" + type: ibom + dir: BoM +