diff options
author | jaseg <git@jaseg.de> | 2023-04-24 00:56:32 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-24 00:56:32 +0200 |
commit | 5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f (patch) | |
tree | 40f18dc77010cdc7d8892f198ce37ba30c4e9ca9 /gerbonara/tests/test_kicad_footprints.py | |
parent | bda404c18be7e6c8a82c2a4022bcde1215679b9e (diff) | |
download | gerbonara-5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f.tar.gz gerbonara-5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f.tar.bz2 gerbonara-5a41d96fe3fe94e46b4b8d1864a4bc5d71d1616f.zip |
Fixing more tests
Diffstat (limited to 'gerbonara/tests/test_kicad_footprints.py')
-rw-r--r-- | gerbonara/tests/test_kicad_footprints.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gerbonara/tests/test_kicad_footprints.py b/gerbonara/tests/test_kicad_footprints.py index 0d7c11b..df483fa 100644 --- a/gerbonara/tests/test_kicad_footprints.py +++ b/gerbonara/tests/test_kicad_footprints.py @@ -68,6 +68,8 @@ def test_round_trip(kicad_mod_file): assert original == stage1 +# Regrettably, we have to re-implement a significant part of the SVG spec to fix up the SVGs that kicad-cli produces. + def _compute_style(elem): current_style = {} for elem in [*reversed(list(elem.parents)), elem]: @@ -187,14 +189,14 @@ def test_render(kicad_mod_file, tmpfile, print_on_error): layer = stack[('top', 'courtyard')] bounds = [] - print('===== BOUNDS =====') + #print('===== BOUNDS =====') for obj in layer.objects: if isinstance(obj, (go.Line, go.Arc)): bbox = (min_x, min_y), (max_x, max_y) = obj.bounding_box(unit=MM) - import textwrap - print(f'{min_x: 3.6f} {min_y: 3.6f} {max_x: 3.6f} {max_y: 3.6f}', '\n'.join(textwrap.wrap(str(obj), width=80, subsequent_indent=' '*(3+4*(3+1+6))))) + #import textwrap + #print(f'{min_x: 3.6f} {min_y: 3.6f} {max_x: 3.6f} {max_y: 3.6f}', '\n'.join(textwrap.wrap(str(obj), width=80, subsequent_indent=' '*(3+4*(3+1+6))))) bounds.append(bbox) - print('===== END =====') + #print('===== END =====') if not bounds: print('Footprint has no paths on courtyard layer') |