1 2 3 4 5 6 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.