Skip to content

Commit

Permalink
[Tests][PCB Print][Added] Test for layer pair names
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 10, 2025
1 parent 1f3e7b2 commit 10769b2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
Binary file modified tests/reference/7_0_0/drill_types-assembly_page_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/reference/7_0_0/drill_types-assembly_page_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/reference/7_0_0/drill_types-assembly_page_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/reference/7_0_0/drill_types-assembly_page_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/reference/7_0_0/drill_types-assembly_page_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/reference/7_0_0/drill_types-assembly_page_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions tests/test_plot/test_print_pcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ def test_pcb_print_drill_map(test_dir):
prj = 'drill_types'
ctx = context.TestContext(test_dir, prj, 'print_drill_map')
ctx.run()
ctx.compare_image(prj+'-assembly_page_01.png', diff='diff_01.png', tol=DIFF_TOL)
ctx.compare_image(prj+'-assembly_page_02.png', diff='diff_02.png', tol=DIFF_TOL)
ctx.compare_image(prj+'-assembly_page_03.png', diff='diff_03.png', tol=DIFF_TOL)
ctx.compare_image(prj+'-assembly_page_04.png', diff='diff_04.png', tol=DIFF_TOL)
ctx.compare_image(prj+'-assembly_page_05.png', diff='diff_05.png', tol=DIFF_TOL)
ctx.compare_image(prj+'-assembly_page_06.png', diff='diff_06.png', tol=DIFF_TOL)
ctx.compare_image(prj+'-assembly_page_01.png', diff='diff_01.png', tol=DIFF_TOL, height='90%')
ctx.compare_image(prj+'-assembly_page_02.png', diff='diff_02.png', tol=DIFF_TOL, height='90%')
ctx.compare_image(prj+'-assembly_page_03.png', diff='diff_03.png', tol=DIFF_TOL, height='90%')
ctx.compare_image(prj+'-assembly_page_04.png', diff='diff_04.png', tol=DIFF_TOL, height='90%')
ctx.compare_image(prj+'-assembly_page_05.png', diff='diff_05.png', tol=DIFF_TOL, height='90%')
ctx.compare_image(prj+'-assembly_page_06.png', diff='diff_06.png', tol=DIFF_TOL, height='90%')
ctx.clean_up()


Expand Down
1 change: 1 addition & 0 deletions tests/yaml_samples/print_drill_map.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ outputs:
- scaling: 3
repeat_for_layer: 'User.Drawings'
repeat_layers: 'drill_pairs'
sheet: '%lp (%lpn)'
layers:
- layer: 'User.Drawings'
color: '#000000'
Expand Down

0 comments on commit 10769b2

Please sign in to comment.