def test_airwires(): boards = path(CIRCUIT_DIR).walkfiles('*.brd') for b in boards: print 'board', b if 'kicad' in b.lower(): print 'skipped!' continue eq_(airwires(b), 0)
def test_values(): assert airwires(join(EXAMPLES, "singlesided/singlesided.brd")) == 39 assert airwires(join(EXAMPLES, "tutorial/demo2.brd")) == 0
def air(fin, **kwargs): print(airwires(fin, **kwargs))
def test_values(): eq_(airwires(EXAMPLES / 'singlesided/singlesided.brd'), 39) eq_(airwires(EXAMPLES / 'tutorial/demo2.brd'), 0)
from eagexp.airwires import airwires brd1 = '/usr/share/eagle/projects/examples/singlesided/singlesided.brd' brd2 = '/usr/share/eagle/projects/examples/tutorial/demo2.brd' if __name__ == "__main__": print( airwires(brd1) ) print( airwires(brd2) )
from eagexp.airwires import airwires brd1 = "/usr/share/eagle/projects/examples/singlesided/singlesided.brd" brd2 = "/usr/share/eagle/projects/examples/tutorial/demo2.brd" if __name__ == "__main__": print(airwires(brd1)) print(airwires(brd2))