[Tests][KiKit Present][Added] Simple one

This commit is contained in:
Salvador E. Tropea 2024-01-15 13:39:26 -03:00
parent 0ecb546a8c
commit ea8bed8642
1 changed files with 13 additions and 0 deletions

View File

@ -1823,6 +1823,7 @@ def test_definitions_1(test_dir):
ctx.clean_up()
@pytest.mark.slow
@pytest.mark.skipif(not context.ki7(), reason="Just testing with 7")
def test_populate_1(test_dir):
prj = 'simple_2layer' # Fake
@ -1830,3 +1831,15 @@ def test_populate_1(test_dir):
ctx.run(no_board_file=True, extra=['-b', 'tests/data/ArduinoLearningKitStarter.kicad_pcb', 'Populate'])
ctx.compare_image('Populate/img/populating_4.png', 'populating_4.png')
ctx.clean_up()
@pytest.mark.slow
@pytest.mark.skipif(not context.ki7(), reason="Just testing with 7")
def test_present_1(test_dir):
prj = 'light_control'
ctx = context.TestContext(test_dir, prj, 'kikit_present_external_1', 'Present/Files')
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)