Rename FindModuleByReference to

FindFootprintByReference
This commit is contained in:
Dominik Wernberger 2020-11-14 00:06:31 +01:00 committed by Werni
parent a4650e7269
commit d8cfe834f9
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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],