29 lines
805 B
Python
29 lines
805 B
Python
"""
|
|
Tests of Postscript format.
|
|
|
|
For debug information use:
|
|
pytest-3 --log-cli-level debug
|
|
"""
|
|
from . import context
|
|
PS_DIR = 'PS'
|
|
|
|
|
|
def test_ps(test_dir):
|
|
prj = 'simple_2layer'
|
|
ctx = context.TestContext(test_dir, prj, 'ps', PS_DIR)
|
|
ctx.run()
|
|
ctx.expect_out_file(ctx.get_gerber_filename('F_Cu', '.ps'))
|
|
ctx.expect_out_file(ctx.get_gerber_filename('F_Fab', '.ps'))
|
|
ctx.dont_expect_out_file(ctx.get_gerber_job_filename())
|
|
ctx.clean_up()
|
|
|
|
|
|
def test_ps_auto(test_dir):
|
|
prj = 'simple_2layer'
|
|
ctx = context.TestContext(test_dir, prj, 'ps_auto', PS_DIR)
|
|
ctx.run()
|
|
ctx.expect_out_file(ctx.get_gerber_filename('F_Cu', '.ps'))
|
|
ctx.expect_out_file(ctx.get_gerber_filename('F_Fab', '.ps'))
|
|
ctx.dont_expect_out_file(ctx.get_gerber_job_filename())
|
|
ctx.clean_up()
|