From a8e905a1e8d0a2a4988d71fe2630bd40fb034e77 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 23 Feb 2020 20:15:53 +0100 Subject: [PATCH] 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 --- qa/testcases/test_002_board_class.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qa/testcases/test_002_board_class.py b/qa/testcases/test_002_board_class.py index ff1bd8e661..2623cc73df 100644 --- a/qa/testcases/test_002_board_class.py +++ b/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.FindModule('P1') + module = self.pcb.FindModuleByReference('P1') self.assertEqual(module.GetReference(),'P1') def test_pcb_get_track_count(self): @@ -44,9 +44,6 @@ class TestBoardClass(unittest.TestCase): track = TRACK(pcb) pcb.Add(track) - #track.SetStartEnd(wxPointMM(10.0, 10.0), - # wxPointMM(20.0, 30.0)) - track.SetStart(wxPointMM(10.0, 10.0)) track.SetEnd(wxPointMM(20.0, 30.0))