summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/tests/test_pcb.py
diff options
context:
space:
mode:
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.