diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-07 23:48:02 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-07 23:48:02 +0100 |
commit | efe5d835eaa26d8696c3352c4e1ed42da16fe27b (patch) | |
tree | d91a0273618e274278da77d01a20c183320f0940 /test/test_parse_pcb.py | |
parent | 1fba999bec5a589e4785594fb1a6fbfab9129097 (diff) | |
download | ee-python-efe5d835eaa26d8696c3352c4e1ed42da16fe27b.tar.gz ee-python-efe5d835eaa26d8696c3352c4e1ed42da16fe27b.tar.bz2 ee-python-efe5d835eaa26d8696c3352c4e1ed42da16fe27b.tar.xz ee-python-efe5d835eaa26d8696c3352c4e1ed42da16fe27b.zip |
wip
Diffstat (limited to 'test/test_parse_pcb.py')
-rw-r--r-- | test/test_parse_pcb.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_parse_pcb.py b/test/test_parse_pcb.py new file mode 100644 index 0000000..9592b92 --- /dev/null +++ b/test/test_parse_pcb.py @@ -0,0 +1,15 @@ +import pytest +import os.path +import ee.kicad.pcb + +basedir = os.path.dirname(os.path.abspath(__file__)) + +def test_parsing(): + path = os.path.join(basedir, "kicad_pcb/parser-1.kicad_pcb") + count = 0 + kicad_pcb = ee.kicad.pcb.parse(path) + modules = kicad_pcb.modules + del kicad_pcb.modules + print(str(kicad_pcb)) + for m in modules: + print(m) |