Merge pull request #115 from thesamprice/test/add-schematic-component-unit

test: add unit parameter tests for add_schematic_component
This commit is contained in:
mixelpixx
2026-04-21 09:15:59 -04:00
committed by GitHub
4 changed files with 208 additions and 2 deletions

View File

@@ -725,6 +725,7 @@ class KiCADInterface:
footprint = component.get("footprint", "")
x = component.get("x", 0)
y = component.get("y", 0)
unit = component.get("unit", 1)
# Derive project path from schematic path for project-local library resolution
schematic_file = Path(schematic_path)
@@ -740,6 +741,7 @@ class KiCADInterface:
footprint=footprint,
x=x,
y=y,
unit=unit,
project_path=derived_project_path,
)