Browse Source

Rename FindModuleByReference to

FindFootprintByReference
6.0.7
Dominik Wernberger 5 years ago
committed by Werni
parent
commit
d8cfe834f9
  1. 2
      qa/testcases/test_002_board_class.py
  2. 2
      qa/testcases/test_003_pads.py

2
qa/testcases/test_002_board_class.py

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

2
qa/testcases/test_003_pads.py

@ -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…
Cancel
Save