summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/tests/test_excellon.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-22 14:02:07 +0100
committerjaseg <git@jaseg.de>2022-01-22 14:02:07 +0100
commitb85e8b0065c1b90159970ed8139f0747e953eb3f (patch)
tree0851adb7626a06d7cf7dad67ea7fbe9c2b61bdfb /gerbonara/gerber/tests/test_excellon.py
parent9966fa5ae65509877db4d8e3dc6508963750bfc4 (diff)
downloadgerbonara-b85e8b0065c1b90159970ed8139f0747e953eb3f.tar.gz
gerbonara-b85e8b0065c1b90159970ed8139f0747e953eb3f.tar.bz2
gerbonara-b85e8b0065c1b90159970ed8139f0747e953eb3f.zip
Excellon: fix first tests
Diffstat (limited to 'gerbonara/gerber/tests/test_excellon.py')
-rw-r--r--gerbonara/gerber/tests/test_excellon.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/gerbonara/gerber/tests/test_excellon.py b/gerbonara/gerber/tests/test_excellon.py
index 545bec9..f8d54ed 100644
--- a/gerbonara/gerber/tests/test_excellon.py
+++ b/gerbonara/gerber/tests/test_excellon.py
@@ -1,17 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Jan Götte <code@jaseg.de>
-import os
-import re
import math
-import functools
-import tempfile
-import shutil
-from argparse import Namespace
-from itertools import chain
-from pathlib import Path
-from contextlib import contextmanager
-from PIL import Image
import pytest
@@ -24,7 +14,6 @@ from .utils import *
REFERENCE_FILES = [
'easyeda/Gerber_Drill_NPTH.DRL',
'easyeda/Gerber_Drill_PTH.DRL',
- 'allegro-2/MinnowMax_RevA1_IPC356A.ipc',
'altium-composite-drill/NC Drill/LimeSDR-QPCIe_1v2-SlotHoles.TXT',
'altium-composite-drill/NC Drill/LimeSDR-QPCIe_1v2-RoundHoles.TXT',
'pcb-rnd/power-art.xln',
@@ -48,7 +37,7 @@ def test_round_trip(reference, tmpfile):
ExcellonFile.open(reference).save(tmp)
- mean, _max, hist = excellon_difference(reference, tmp, diff_out=tmpfile('Difference', '.png'))
+ mean, _max, hist = gerber_difference(reference, tmp, diff_out=tmpfile('Difference', '.png'))
assert mean < 5e-5
assert hist[9] == 0
assert hist[3:].sum() < 5e-5*hist.size