aboutsummaryrefslogtreecommitdiff
path: root/gerbolyze/tests
diff options
context:
space:
mode:
Diffstat (limited to 'gerbolyze/tests')
-rw-r--r--gerbolyze/tests/resources/layers.svg10
-rw-r--r--gerbolyze/tests/resources/svg_feature_test.svg8
-rw-r--r--gerbolyze/tests/test_integration.py3
3 files changed, 12 insertions, 9 deletions
diff --git a/gerbolyze/tests/resources/layers.svg b/gerbolyze/tests/resources/layers.svg
index 33ff4ab..76760ce 100644
--- a/gerbolyze/tests/resources/layers.svg
+++ b/gerbolyze/tests/resources/layers.svg
@@ -82,7 +82,7 @@
id="rect1146-5" />
</defs>
<sodipodi:namedview
- inkscape:current-layer="g-plated-drill"
+ inkscape:current-layer="g-drill-plated"
id="namedview4"
pagecolor="#ffffff"
bordercolor="#000000"
@@ -555,8 +555,8 @@
ry="3.894336" />
</g>
<g
- id="g-plated-drill"
- inkscape:label="plated drill"
+ id="g-drill-plated"
+ inkscape:label="drill plated"
inkscape:groupmode="layer">
<g
id="g3914"
@@ -1637,8 +1637,8 @@
</g>
</g>
<g
- id="g-nonplated-drill"
- inkscape:label="nonplated drill"
+ id="g-drill-nonplated"
+ inkscape:label="drill nonplated"
inkscape:groupmode="layer">
<g
id="g3736"
diff --git a/gerbolyze/tests/resources/svg_feature_test.svg b/gerbolyze/tests/resources/svg_feature_test.svg
index 475dbc2..2b2c5b5 100644
--- a/gerbolyze/tests/resources/svg_feature_test.svg
+++ b/gerbolyze/tests/resources/svg_feature_test.svg
@@ -904,12 +904,12 @@
</g>
</g>
<g
- id="g-plated-drill"
- inkscape:label="plated drill"
+ id="g-drill-plated"
+ inkscape:label="drill plated"
inkscape:groupmode="layer" />
<g
- id="g-nonplated-drill"
- inkscape:label="nonplated drill"
+ id="g-drill-nonplated"
+ inkscape:label="drill nonplated"
inkscape:groupmode="layer" />
<g
id="g-comments"
diff --git a/gerbolyze/tests/test_integration.py b/gerbolyze/tests/test_integration.py
index f324096..cf59eed 100644
--- a/gerbolyze/tests/test_integration.py
+++ b/gerbolyze/tests/test_integration.py
@@ -33,6 +33,8 @@ reference_path = lambda reference: Path(__file__).parent / 'resources' / str(ref
def run_command(*args):
try:
proc = subprocess.run(args, check=True, capture_output=True)
+ print(proc.stdout.decode())
+ print(proc.stderr.decode(), file=sys.stderr)
except subprocess.CalledProcessError as e:
print(e.stdout.decode())
print(e.stderr.decode(), file=sys.stderr)
@@ -69,6 +71,7 @@ def test_convert_layers():
with tempfile.TemporaryDirectory() as out_dir:
run_command('python3', '-m', 'gerbolyze', 'convert', infile, out_dir)
stack = gerbonara.layers.LayerStack.open(out_dir)
+
for layer, dia in {
'top paste': 0.100,
'top silk': 0.110,