Skip to content

Commit

Permalink
[Tests][References][KiCad 7.0.5] Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jun 9, 2023
1 parent 7744993 commit 7bea981
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/eeschema/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_export_pdf(test_dir):
cmd = [PROG, '-vv', '-r', 'export', '--file_format', 'pdf']
ctx.run(cmd)
ctx.expect_out_file(pdf)
ctx.compare_image(pdf, 'good_sch_top.pdf')
ctx.compare_image(pdf, 'good_sch_top.pdf', fuzz='31%')
# Check the .pro wasn't altered
logging.debug("Checking .pro wasn't altered")
assert mtime == ctx.get_pro_mtime()
Expand Down
Binary file modified tests/reference/7/good-project-Power.ps
Binary file not shown.
Binary file modified tests/reference/7/good-project-logic.ps
Binary file not shown.
Binary file modified tests/reference/7/good-project.ps
Binary file not shown.
Binary file modified tests/reference/7/good_pcb_sep_bn.pdf
Binary file not shown.
Binary file modified tests/reference/7/good_pcb_sep_bn_fit.pdf
Binary file not shown.
Binary file modified tests/reference/7/good_sch_all.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/utils/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def compare_ps(self, image, reference=None, diff='diff.png'):
self.compare_image(image_png, reference_png, diff)
os.remove(os.path.join(self.ref_dir, reference_png))

def compare_pdf(self, gen, reference=None, diff='diff-{}.png'):
def compare_pdf(self, gen, reference=None, diff='diff-{}.png', fuzz='30%'):
""" For multi-page PDFs """
if reference is None:
reference = gen
Expand All @@ -339,7 +339,7 @@ def compare_pdf(self, gen, reference=None, diff='diff-{}.png'):
for page in range(len(ref_pages)):
self._compare_image(self.get_out_path('ref-'+str(page)+'.png'),
self.get_out_path('gen-'+str(page)+'.png'),
self.get_out_path(diff.format(page)))
self.get_out_path(diff.format(page)), fuzz=fuzz)

def compare_txt(self, text, reference=None, diff='diff.txt'):
if reference is None:
Expand Down

0 comments on commit 7bea981

Please sign in to comment.