summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/tests/conftest.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-12-29 22:03:33 +0100
committerjaseg <git@jaseg.de>2021-12-29 22:03:33 +0100
commitd8ff4a468b7299a370905b5c12c62393e369c61a (patch)
tree9b55fb9921b0a52900f066483792c4121253ac50 /gerbonara/gerber/tests/conftest.py
parent3fb26e6940b5ae752308d8a33f2608d266795153 (diff)
downloadgerbonara-d8ff4a468b7299a370905b5c12c62393e369c61a.tar.gz
gerbonara-d8ff4a468b7299a370905b5c12c62393e369c61a.tar.bz2
gerbonara-d8ff4a468b7299a370905b5c12c62393e369c61a.zip
Fix some failing tests
Diffstat (limited to 'gerbonara/gerber/tests/conftest.py')
-rw-r--r--gerbonara/gerber/tests/conftest.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gerbonara/gerber/tests/conftest.py b/gerbonara/gerber/tests/conftest.py
index 0ad2555..c8fd475 100644
--- a/gerbonara/gerber/tests/conftest.py
+++ b/gerbonara/gerber/tests/conftest.py
@@ -3,14 +3,13 @@ import pytest
from .image_support import ImageDifference
-@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_assertrepr_compare(op, left, right):
if isinstance(left, ImageDifference) or isinstance(right, ImageDifference):
diff = left if isinstance(left, ImageDifference) else right
return [
f'Image difference assertion failed.',
f' Reference: {diff.ref_path}',
- f' Actual: {diff.out_path}',
+ f' Actual: {diff.act_path}',
f' Calculated difference: {diff}', ]
# store report in node object so tmp_gbr can determine if the test failed.