diff --git a/tests/test_plot/test_bom.py b/tests/test_plot/test_bom.py index 2e32fe9b..d038c418 100644 --- a/tests/test_plot/test_bom.py +++ b/tests/test_plot/test_bom.py @@ -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']) diff --git a/tests/test_plot/test_print_sch.py b/tests/test_plot/test_print_sch.py index be063d9c..a13952ba 100644 --- a/tests/test_plot/test_print_sch.py +++ b/tests/test_plot/test_print_sch.py @@ -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() diff --git a/tests/yaml_samples/bom.kiplot.yaml b/tests/yaml_samples/bom.kiplot.yaml index 434d786d..b2225872 100644 --- a/tests/yaml_samples/bom.kiplot.yaml +++ b/tests/yaml_samples/bom.kiplot.yaml @@ -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"