From 1fba999bec5a589e4785594fb1a6fbfab9129097 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 7 Dec 2017 12:12:59 +0100 Subject: o A start of a kicad_pcb parser. --- test/test_parse_kicad_pcb.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/test_parse_kicad_pcb.py (limited to 'test/test_parse_kicad_pcb.py') 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 -- cgit v1.2.3