Added simnple test for Specs (XLSX BoM)
This commit is contained in:
parent
358b7f4e44
commit
1b2616b19f
|
|
@ -0,0 +1,2 @@
|
||||||
|
References,case_package,case_package_si,packaging,pin_count,power_rating,reach_svhc_compliance,resistance,resistance_tolerance,rohs_status,size_length,size_thickness,size_width,temperature_coefficient,voltage_rating_dc
|
||||||
|
R1 R2,0603,1608,"Cut Tape (CT), Tape & Reel (TR)",2,100 mW,No SVHC,1.00 kΩ,±5%,Compliant,1.60 mm,457 µm,787 µm,-200 ppm/°C to 200 ppm/°C,50.0 V
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
References,capacitance,capacitance_tolerance,case_package,dielectric_characteristic,lead_free_status,mounting_style,operating_temperature,rohs_status,voltage_rating_dc
|
||||||
|
C1 C2,1.00 nF,±10%,0603,X7R,Lead Free,Surface Mount,-55.0 °C (min),Compliant,100 V
|
||||||
|
|
|
@ -88,6 +88,10 @@ def test_kicost_bom_simple(test_dir):
|
||||||
ctx.compare_txt(csv)
|
ctx.compare_txt(csv)
|
||||||
convert2csv(ctx.get_out_path(output), sheet='Costs (DNF)')
|
convert2csv(ctx.get_out_path(output), sheet='Costs (DNF)')
|
||||||
ctx.compare_txt(csv, output[:-5]+'_dnf.csv')
|
ctx.compare_txt(csv, output[:-5]+'_dnf.csv')
|
||||||
|
convert2csv(ctx.get_out_path(output), sheet='Specs')
|
||||||
|
ctx.compare_txt(csv, output[:-5]+'_spec.csv')
|
||||||
|
convert2csv(ctx.get_out_path(output), sheet='Specs (DNF)')
|
||||||
|
ctx.compare_txt(csv, output[:-5]+'_spec_dnf.csv')
|
||||||
ctx.clean_up()
|
ctx.clean_up()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,5 @@ outputs:
|
||||||
xlsx:
|
xlsx:
|
||||||
kicost: true
|
kicost: true
|
||||||
kicost_config: tests/data/kicost_default_config.yaml
|
kicost_config: tests/data/kicost_default_config.yaml
|
||||||
|
specs: true
|
||||||
extra_info: ['%f', ' %d']
|
extra_info: ['%f', ' %d']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue