[Tests][KiKit Present][Added] Local and File cases
This commit is contained in:
parent
e94c4a0ec1
commit
bd4cefc2c4
|
|
@ -1926,6 +1926,30 @@ def test_present_1(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_2(test_dir):
|
||||
prj = 'light_control'
|
||||
ctx = context.TestContext(test_dir, prj, 'kikit_present_local_1', 'Present/Local_1')
|
||||
ctx.run()
|
||||
ctx.expect_out_file_d(['boards/light_control-back.svg', 'boards/light_control-front.svg',
|
||||
'boards/light_control-gerbers.zip', 'boards/light_control.kicad_pcb',
|
||||
'css/styles.css', 'index.html'])
|
||||
ctx.clean_up(keep_project=True)
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@pytest.mark.skipif(not context.ki7(), reason="Just testing with 7")
|
||||
def test_present_3(test_dir):
|
||||
prj = 'light_control'
|
||||
ctx = context.TestContext(test_dir, prj, 'kikit_present_file_1', 'Present/Files')
|
||||
ctx.run()
|
||||
ctx.expect_out_file_d(['boards/light_control-back.png', 'boards/light_control-front.png',
|
||||
'boards/light_control-gerbers.png', 'boards/light_control.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
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ outputs:
|
|||
boards:
|
||||
mode: file
|
||||
comment: This is a comment
|
||||
front_image: pp/front.png
|
||||
back_image: pp/back.png
|
||||
gerbers: pp/gerbers.zip
|
||||
front_image: docs/images/kibot_370x200b.png
|
||||
back_image: docs/images/kibot_370x200.png
|
||||
gerbers: docs/images/Esquema.png
|
||||
resources: 'tests/data/silly_project.md'
|
||||
# template: 'default'
|
||||
repository: 'https://github.com/INTI-CMNB/KiBot/'
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ outputs:
|
|||
comment: This is a comment
|
||||
name: Light control
|
||||
# back_image: Raytraced
|
||||
back_image: Blender
|
||||
# back_image: Blender
|
||||
back_image: PcbDraw
|
||||
repository: 'https://github.com/INTI-CMNB/KiBot/'
|
||||
|
||||
- name: PcbDraw
|
||||
|
|
|
|||
Loading…
Reference in New Issue