From ee62dd01720c8481599a717d067014164af7e096 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 13 May 2019 09:45:09 +0200 Subject: ee.kicad.model: Adding Symbol, exposing in addition existing parsing of value. v4 and v5 compatible. --- test/test_read_schematic.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_read_schematic.py b/test/test_read_schematic.py index 2b269a6..9486c6d 100644 --- a/test/test_read_schematic.py +++ b/test/test_read_schematic.py @@ -45,6 +45,10 @@ def test_demo_1(): dump_bom(sch) r101 = sch.get_component("R101") assert r101 + # KiCAD 4 + assert r101.symbol.name == "R" + # If this doesn't fail, you've upgraded the .sch files to KiCAD5+. Don't do that, make a new one. + assert r101.symbol.library is None def test_sch(): -- cgit v1.2.3