remove is_inkscape_label parameter

This commit is contained in:
snoyer 2024-12-30 20:47:22 +04:00
parent c0728e0803
commit 5ecea4bb91
2 changed files with 8 additions and 15 deletions

View file

@ -71,13 +71,9 @@ class ImportSVG(unittest.TestCase):
def test_import_svg(self):
svg_file = Path(__file__).parent / "../tests/svg_import_test.svg"
for tag in ["id", "label"]:
for tag in ["id", "inkscape:label"]:
# Import the svg object as a ShapeList
svg = import_svg(
svg_file,
label_by=tag,
is_inkscape_label=tag == "label",
)
svg = import_svg(svg_file, label_by=tag)
# Exact the shape of the plate & holes
base_faces = svg.filter_by(lambda f: "base" in f.label)