summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/tests/image_support.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-24 14:19:01 +0100
committerjaseg <git@jaseg.de>2022-01-24 14:19:01 +0100
commita1c1d6d971257f03f1926db9dc44e659d2773d2d (patch)
tree443af73413f52b47fbbddf185bb497fb483c93c0 /gerbonara/gerber/tests/image_support.py
parent4a6d76c557caf7263ab57e5fe840d28aa3356621 (diff)
downloadgerbonara-a1c1d6d971257f03f1926db9dc44e659d2773d2d.tar.gz
gerbonara-a1c1d6d971257f03f1926db9dc44e659d2773d2d.tar.bz2
gerbonara-a1c1d6d971257f03f1926db9dc44e659d2773d2d.zip
Add more tests
Diffstat (limited to 'gerbonara/gerber/tests/image_support.py')
-rw-r--r--gerbonara/gerber/tests/image_support.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gerbonara/gerber/tests/image_support.py b/gerbonara/gerber/tests/image_support.py
index a50e243..1dfd34a 100644
--- a/gerbonara/gerber/tests/image_support.py
+++ b/gerbonara/gerber/tests/image_support.py
@@ -73,6 +73,7 @@ def gerbv_export(in_gbr, out_svg, export_format='svg', origin=(0, 0), size=(6, 6
with tempfile.NamedTemporaryFile('w') as f:
if override_unit_spec:
units, zeros, digits = override_unit_spec
+ print(f'{Path(in_gbr).name}: overriding excellon unit spec to {units=} {zeros=} {digits=}')
units = 0 if units == 'inch' else 1
zeros = {None: 0, 'leading': 1, 'trailing': 2}[zeros]
unit_spec = textwrap.dedent(f'''(cons 'attribs (list