QA: fix a python test issue due to code changes in board.h

FindModule() does not exist anymore. Use FindModuleByReference() instead.

Fixes #3927
https://gitlab.com/kicad/code/kicad/issues/3927
This commit is contained in:
jean-pierre charras 2020-02-23 20:15:53 +01:00
parent fee5db80dc
commit a8e905a1e8
1 changed files with 1 additions and 4 deletions

View File

@ -23,7 +23,7 @@ class TestBoardClass(unittest.TestCase):
self.FILENAME=tempfile.mktemp()+".kicad_pcb" self.FILENAME=tempfile.mktemp()+".kicad_pcb"
def test_pcb_find_module(self): def test_pcb_find_module(self):
module = self.pcb.FindModule('P1') module = self.pcb.FindModuleByReference('P1')
self.assertEqual(module.GetReference(),'P1') self.assertEqual(module.GetReference(),'P1')
def test_pcb_get_track_count(self): def test_pcb_get_track_count(self):
@ -44,9 +44,6 @@ class TestBoardClass(unittest.TestCase):
track = TRACK(pcb) track = TRACK(pcb)
pcb.Add(track) pcb.Add(track)
#track.SetStartEnd(wxPointMM(10.0, 10.0),
# wxPointMM(20.0, 30.0))
track.SetStart(wxPointMM(10.0, 10.0)) track.SetStart(wxPointMM(10.0, 10.0))
track.SetEnd(wxPointMM(20.0, 30.0)) track.SetEnd(wxPointMM(20.0, 30.0))