diff options
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 |