Added test fro KiBoM with variant and print_sch_pdf fail.
This commit is contained in:
parent
05460f4541
commit
42342236da
|
|
@ -34,7 +34,7 @@ def test_bom_ok():
|
|||
# Default format is PRJ_bom_REVISION
|
||||
name = os.path.join(BOM_DIR, prj+'_bom_')
|
||||
csv = name+'.csv'
|
||||
html = name+'.html'
|
||||
html = name+'_(pp).html'
|
||||
ctx.expect_out_file(csv)
|
||||
ctx.expect_out_file(html)
|
||||
ctx.search_in_file(csv, ['R,R1,100', 'R,R2,200', 'C,C1,1uF'])
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import sys
|
|||
prev_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
if prev_dir not in sys.path:
|
||||
sys.path.insert(0, prev_dir)
|
||||
from kiplot.misc import (PDF_SCH_PRINT)
|
||||
# Utils import
|
||||
from utils import context
|
||||
|
||||
|
|
@ -29,3 +30,10 @@ def test_print_sch():
|
|||
# Check all outputs are there
|
||||
ctx.expect_out_file(PDF_FILE)
|
||||
ctx.clean_up()
|
||||
|
||||
|
||||
def test_print_sch_fail():
|
||||
prj = '3Rs'
|
||||
ctx = context.TestContext('PrSCHFail', prj, 'print_sch', PDF_DIR)
|
||||
ctx.run(PDF_SCH_PRINT)
|
||||
ctx.clean_up()
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ outputs:
|
|||
dir: BoM
|
||||
options:
|
||||
format: HTML # HTML or CSV
|
||||
variant: pp
|
||||
|
||||
- name: 'bom_csv'
|
||||
comment: "Bill of Materials in CSV format"
|
||||
|
|
|
|||
Loading…
Reference in New Issue