diff options
author | Prashant Kumar <prashant.kmr752@gmail.com> | 2020-06-03 22:26:24 +0530 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-13 17:30:58 +0200 |
commit | 7bebf9fe62dad33867ba6df1c0c611f8b313c549 (patch) | |
tree | bd9a0e2d54d00b3671d980f9aa891ee4554d07b5 /gerbonara/gerber/tests/test_pcb.py | |
parent | 8805b75a41897b7e853c23f0835627635913cd52 (diff) | |
download | gerbonara-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.py | 7 |
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. |