[Tests][KiKit Present][Added] From output case

This commit is contained in:
Salvador E. Tropea 2024-01-23 13:13:53 -03:00
parent 9c449f3893
commit 2d6120cc37
2 changed files with 108 additions and 0 deletions

View File

@ -1973,6 +1973,19 @@ def test_present_3(test_dir):
ctx.clean_up(keep_project=True)
@pytest.mark.slow
@pytest.mark.skipif(not context.ki7(), reason="Just testing with 7")
def test_present_4(test_dir):
""" Gerbers from output, PCB from panel """
prj = 'simple_2layer'
ctx = context.TestContext(test_dir, prj, 'kikit_present_out_1', 'Present/Out')
ctx.run()
ctx.expect_out_file_d(['boards/simple_2layer-panel-back.svg', 'boards/simple_2layer-panel-front.svg',
'boards/simple_2layer-panel-gerbers.zip', 'boards/simple_2layer-panel.kicad_pcb',
'css/styles.css', 'index.html'])
ctx.clean_up(keep_project=True)
def test_groups_1(test_dir):
""" Groups definitions """
prj = 'simple_2layer' # fake

View File

@ -0,0 +1,95 @@
kiplot:
version: 1
outputs:
- name: KiKit_present_files
comment: "Present test using full auto mode"
type: kikit_present
dir: Present/Out
options:
description: 'tests/data/silly_project.md'
repository: 'https://github.com/INTI-CMNB/KiBot/'
boards:
- gerbers: gerbers
pcb_from_output: panel
- name: PcbDraw
comment: "PcbDraw test top"
type: pcbdraw
dir: PcbDraw
options:
format: svg
vcuts: true
warnings: visible
dpi: 600
- name: 'gerbers'
comment: "Gerbers for the Gerber god"
type: gerber
dir: gerberdir
layers: copper
- name: 'panel'
comment: "Create a 2x2 panel"
type: panelize
options:
title: '+ (Panel)'
units: mm
configs:
- layout:
rows: 2
cols: 2
space: 2
hbackbone: 5
vbackbone: 5
hboneskip: 1
vboneskip: 1
page:
size: A3
tabs:
type: fixed
width: 3
vcount: 2
hcount: 0
cuts:
type: mousebites
drill: 0.5
spacing: 1mm
offset: 0.2
prolong: 0.5
framing:
type: railstb
width: 5
space: 3
copperfill:
type: hatched
clearance: 2
spacing: 0.5
width: 0.5
tooling:
type: 3hole
hoffset: 2.5
voffset: 2.5
size: 1.5
fiducials:
type: 3fid
hoffset: 5
voffset: 2.5
coppersize: 2
opening: 1
text:
type: simple
text: My panel
anchor: mt
voffset: 2.5
hjustify: center
vjustify: center
post:
millradius: 1
- name: result
comment: Compress the gerbers
type: compress
options:
files:
- from_output: gerbers