diff --git a/tests/test_plot/test_int_bom.py b/tests/test_plot/test_int_bom.py index 7270c6d3..0d92504a 100644 --- a/tests/test_plot/test_int_bom.py +++ b/tests/test_plot/test_int_bom.py @@ -478,7 +478,7 @@ def test_int_bom_alias_nm_csv(): """ Component aliases and not merge blank fields """ prj = 'kibom-test-2' ext = 'csv' - ctx = context.TestContextSCH('test_int_bom_alias_csv', prj, 'int_bom_alias_nm_csv', BOM_DIR) + ctx = context.TestContextSCH('test_int_bom_alias_nm_csv', prj, 'int_bom_alias_nm_csv', BOM_DIR) ctx.run() out = prj + '-bom.' + ext rows, header = ctx.load_csv(out) @@ -489,3 +489,20 @@ def test_int_bom_alias_nm_csv(): check_kibom_test_netlist(rows, ref_column, KIBOM_TEST_GROUPS+1, KIBOM_TEST_EXCLUDE, KIBOM_TEST_COMPONENTS) check_dnc(rows, 'R7', ref_column, qty_column) ctx.clean_up() + + +def test_int_bom_no_group_csv(): + """ Component aliases and not merge blank fields """ + prj = 'kibom-test' + ext = 'csv' + ctx = context.TestContextSCH('test_int_bom_no_group_csv', prj, 'int_bom_no_group_csv', BOM_DIR) + ctx.run() + out = prj + '-bom.' + ext + rows, header = ctx.load_csv(out) + assert header == KIBOM_TEST_HEAD + ref_column = header.index(REF_COLUMN_NAME) + qty_column = header.index(QTY_COLUMN_NAME) + # R3 without footprint won't be merged with other 10K resistors + check_kibom_test_netlist(rows, ref_column, len(KIBOM_TEST_COMPONENTS), KIBOM_TEST_EXCLUDE, KIBOM_TEST_COMPONENTS) + check_dnc(rows, 'R7', ref_column, qty_column) + ctx.clean_up() diff --git a/tests/yaml_samples/int_bom_no_group_csv.kiplot.yaml b/tests/yaml_samples/int_bom_no_group_csv.kiplot.yaml new file mode 100644 index 00000000..50759a94 --- /dev/null +++ b/tests/yaml_samples/int_bom_no_group_csv.kiplot.yaml @@ -0,0 +1,11 @@ +# Example KiPlot config file +kiplot: + version: 1 + +outputs: + - name: 'bom_internal' + comment: "Bill of Materials in CSV format" + type: bom + dir: BoM + options: + group_fields: []