summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/tests/test_pcb.py
diff options
context:
space:
mode:
authorPrashant Kumar <prashant.kmr752@gmail.com>2020-06-03 22:26:24 +0530
committerjaseg <git@jaseg.de>2021-06-13 17:30:58 +0200
commit7bebf9fe62dad33867ba6df1c0c611f8b313c549 (patch)
treebd9a0e2d54d00b3671d980f9aa891ee4554d07b5 /gerbonara/gerber/tests/test_pcb.py
parent8805b75a41897b7e853c23f0835627635913cd52 (diff)
downloadgerbonara-7bebf9fe62dad33867ba6df1c0c611f8b313c549.tar.gz
gerbonara-7bebf9fe62dad33867ba6df1c0c611f8b313c549.tar.bz2
gerbonara-7bebf9fe62dad33867ba6df1c0c611f8b313c549.zip
Add test resource and test code for eagle files.
Diffstat (limited to 'gerbonara/gerber/tests/test_pcb.py')
-rw-r--r--gerbonara/gerber/tests/test_pcb.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gerbonara/gerber/tests/test_pcb.py b/gerbonara/gerber/tests/test_pcb.py
new file mode 100644
index 0000000..5f513f3
--- /dev/null
+++ b/gerbonara/gerber/tests/test_pcb.py
@@ -0,0 +1,7 @@
+import os
+from ..pcb import PCB
+
+
+def test_from_directory():
+ test_pcb = PCB.from_directory(os.path.join(os.path.dirname(__file__), 'resources/eagle_files'))
+ assert len(test_pcb.layers) == 11 # Checks all the available layer files have been read or not.