parent
a4650e7269
commit
d8cfe834f9
|
@ -23,7 +23,7 @@ class TestBoardClass(unittest.TestCase):
|
|||
self.FILENAME=tempfile.mktemp()+".kicad_pcb"
|
||||
|
||||
def test_pcb_find_module(self):
|
||||
module = self.pcb.FindModuleByReference('P1')
|
||||
module = self.pcb.FindFootprintByReference('P1')
|
||||
self.assertEqual(module.GetReference(),'P1')
|
||||
|
||||
def test_pcb_get_track_count(self):
|
||||
|
|
|
@ -7,7 +7,7 @@ class TestPads(unittest.TestCase):
|
|||
self.pcb = pcbnew.LoadBoard("data/custom_pads.kicad_pcb")
|
||||
|
||||
def test_custom_pads_outline(self):
|
||||
custom_pad1 = self.pcb.FindModuleByReference("SB1").Pads()[0]
|
||||
custom_pad1 = self.pcb.FindFootprintByReference("SB1").Pads()[0]
|
||||
expected_polygons = [[
|
||||
[1000000, 0],
|
||||
[500000, 750000],
|
||||
|
|
Loading…
Reference in New Issue