summaryrefslogtreecommitdiff
path: root/tests/test_rs274x.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-06-13 15:00:17 +0200
committerjaseg <git@jaseg.de>2021-06-13 15:00:17 +0200
commit4eb0e063bcd34c21b737023aa6ed5baed80658d1 (patch)
tree3a56ef7d05f4f64cde930f2432119986e4aab49d /tests/test_rs274x.py
parent889ea37d9b66cbfb7a61795c7750b9f4311faa3f (diff)
downloadgerbonara-4eb0e063bcd34c21b737023aa6ed5baed80658d1.tar.gz
gerbonara-4eb0e063bcd34c21b737023aa6ed5baed80658d1.tar.bz2
gerbonara-4eb0e063bcd34c21b737023aa6ed5baed80658d1.zip
Repo re-org, make gerberex tests run
Diffstat (limited to 'tests/test_rs274x.py')
-rw-r--r--tests/test_rs274x.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_rs274x.py b/tests/test_rs274x.py
index dbb5f62..1a1475a 100644
--- a/tests/test_rs274x.py
+++ b/tests/test_rs274x.py
@@ -5,7 +5,7 @@
import os
import unittest
-import gerberex
+from gerbonara.gerber import panelize
class TestRs274x(unittest.TestCase):
@classmethod
@@ -32,13 +32,13 @@ class TestRs274x(unittest.TestCase):
def test_save(self):
outfile=os.path.join(self.OUTDIR, self.OUTPREFIX + 'save.gtl')
- gerber = gerberex.read(self.METRIC_FILE)
+ gerber = panelize.read(self.METRIC_FILE)
gerber.write(outfile)
self._checkResult(outfile)
def test_to_inch(self):
outfile = os.path.join(self.OUTDIR, self.OUTPREFIX + 'to_inch.gtl')
- gerber = gerberex.read(self.METRIC_FILE)
+ gerber = panelize.read(self.METRIC_FILE)
gerber.to_inch()
gerber.format = (2,5)
gerber.write(outfile)
@@ -46,7 +46,7 @@ class TestRs274x(unittest.TestCase):
def test_to_metric(self):
outfile = os.path.join(self.OUTDIR, self.OUTPREFIX + 'to_metric.gtl')
- gerber = gerberex.read(self.INCH_FILE)
+ gerber = panelize.read(self.INCH_FILE)
gerber.to_metric()
gerber.format = (3, 4)
gerber.write(outfile)
@@ -54,21 +54,21 @@ class TestRs274x(unittest.TestCase):
def test_offset(self):
outfile = os.path.join(self.OUTDIR, self.OUTPREFIX + 'offset.gtl')
- gerber = gerberex.read(self.METRIC_FILE)
+ gerber = panelize.read(self.METRIC_FILE)
gerber.offset(11, 5)
gerber.write(outfile)
self._checkResult(outfile)
def test_rotate(self):
outfile = os.path.join(self.OUTDIR, self.OUTPREFIX + 'rotate.gtl')
- gerber = gerberex.read(self.METRIC_FILE)
+ gerber = panelize.read(self.METRIC_FILE)
gerber.rotate(20, (10,10))
gerber.write(outfile)
self._checkResult(outfile)
def test_single_quadrant(self):
outfile = os.path.join(self.OUTDIR, self.OUTPREFIX + 'single_quadrant.gtl')
- gerber = gerberex.read(self.SQ_FILE)
+ gerber = panelize.read(self.SQ_FILE)
gerber.write(outfile)
self._checkResult(outfile)