Added test for STEP files generation

This commit is contained in:
Salvador E. Tropea 2020-06-15 13:39:59 -03:00
parent 8374238b6d
commit 685fef2ef6
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
"""
Tests of Printing Schematic files
We test:
- STEP for bom.kicad_pcb
For debug information use:
pytest-3 --log-cli-level debug
"""
import os
import sys
# Look for the 'utils' module from where the script is running
script_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.dirname(script_dir))
# Utils import
from utils import context
STEP_DIR = '3D'
#STEP_FILE = 'bom.step'
def test_step_1():
prj = 'bom'
ctx = context.TestContext('STEP_1', prj, 'step_simple', STEP_DIR)
ctx.run()
# Check all outputs are there
ctx.expect_out_file(os.path.join(STEP_DIR, prj+'.step'))
ctx.clean_up()