[Tests] Compare 100% height of PcbDraw images

- Also added some tollerance, with this v1.0.0 is passing the tests.
This commit is contained in:
Salvador E. Tropea 2022-09-29 10:47:06 -03:00
parent b24f3b4e3b
commit 1d0c2307c5
1 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ def test_pcbdraw_variant_1(test_dir):
# in the borders. With 40% these differences are removed and we still detect is a
# components was removed.
# Expected: R1 and R2 populated
ctx.compare_image(fname, fuzz='40%')
ctx.compare_image(fname, fuzz='40%', height='100%')
ctx.clean_up(keep_project=True)
@ -168,7 +168,7 @@ def test_pcbdraw_variant_2(test_dir):
fname = prj+'-top-C1.png'
ctx.expect_out_file(fname)
# Expected: R1 and R2 populated + C1 manually added
ctx.compare_image(fname, fuzz='40%')
ctx.compare_image(fname, fuzz='40%', height='100%', tol=30)
ctx.clean_up(keep_project=True)
@ -179,6 +179,6 @@ def test_pcbdraw_variant_3(test_dir):
# Check all outputs are there
fname = prj+'-top.png'
ctx.expect_out_file(fname)
ctx.compare_image(fname, fuzz='40%')
ctx.compare_image(fname, fuzz='40%', height='100%')
assert ctx.search_err("Ambiguous list of components to show .?none.? vs variant/filter")
ctx.clean_up(keep_project=True)