From ca548809dab4dc6999571e293a4c3e5bbc5417db Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 23 May 2018 09:17:35 +0200 Subject: [PATCH] Fix a qa test issue related to pad hit test. --- qa/testcases/test_002_board_class.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/testcases/test_002_board_class.py b/qa/testcases/test_002_board_class.py index e775475e66..33c3caa5fa 100644 --- a/qa/testcases/test_002_board_class.py +++ b/qa/testcases/test_002_board_class.py @@ -72,6 +72,10 @@ class TestBoardClass(unittest.TestCase): pad.SetSize(wxSizeMM(2.0, 3.0)) pad.SetPosition(wxPointMM(0,0)) + #Update the footprint bounding box, because + #the new pad must be inside the bounding box to be located + module.CalculateBoundingBox() + # easy case p1 = pcb.GetPad(wxPointMM(0,0))