Skip to content

Commit

Permalink
[Tests][KiKit Present][Added] Simple one
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 15, 2024
1 parent 0ecb546 commit ea8bed8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_plot/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1823,10 +1823,23 @@ 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
ctx = context.TestContext(test_dir, prj, 'populate', 'Populate')
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)

0 comments on commit ea8bed8

Please sign in to comment.