Added test for 'ignore_dnf' option in internal BoM

This commit is contained in:
Salvador E. Tropea 2020-08-01 14:12:25 -03:00
parent ecbeb587fe
commit 14cf41bc2d
1 changed files with 14 additions and 0 deletions

View File

@ -256,3 +256,17 @@ def test_int_bom_join_1():
assert rows[2][manf_column] == 'Bourns CR0805-JW-102ELF'
ctx.clean_up()
def test_int_include_dnf():
prj = 'kibom-test'
ext = 'csv'
ctx = context.TestContextSCH('test_int_include_dnf', prj, 'int_bom_include_dnf', 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)
check_kibom_test_netlist(rows, ref_column, KIBOM_TEST_GROUPS+1, [], KIBOM_TEST_COMPONENTS+KIBOM_TEST_EXCLUDE)
check_dnc(rows, 'R7', ref_column, qty_column)
ctx.clean_up()