diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-07 12:12:59 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-12-07 12:13:50 +0100 |
commit | 1fba999bec5a589e4785594fb1a6fbfab9129097 (patch) | |
tree | 1ff18f14284f89fa8bee1bd123802c4f40fec4be /test/test_parse_kicad_pcb.py | |
parent | aa7e1cac11f04f997317c5263b00d1e7d0b94608 (diff) | |
download | ee-python-1fba999bec5a589e4785594fb1a6fbfab9129097.tar.gz ee-python-1fba999bec5a589e4785594fb1a6fbfab9129097.tar.bz2 ee-python-1fba999bec5a589e4785594fb1a6fbfab9129097.tar.xz ee-python-1fba999bec5a589e4785594fb1a6fbfab9129097.zip |
o A start of a kicad_pcb parser.
Diffstat (limited to 'test/test_parse_kicad_pcb.py')
-rw-r--r-- | test/test_parse_kicad_pcb.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_parse_kicad_pcb.py b/test/test_parse_kicad_pcb.py new file mode 100644 index 0000000..25c1957 --- /dev/null +++ b/test/test_parse_kicad_pcb.py @@ -0,0 +1,12 @@ +import pytest +import os.path +from ee.kicad import parse_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 + for (event, token) in parse_kicad_pcb(path): + count = count + 1 + assert count == 3657 |