From e624bbae8ae5d8e8ef2301493372fbe4167a37ff Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 12 Jun 2018 17:21:03 +0200 Subject: [PATCH] fix test_002_board_class.py according to changes (fixes) in bounding box track calculations --- qa/testcases/test_002_board_class.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/testcases/test_002_board_class.py b/qa/testcases/test_002_board_class.py index 33c3caa5fa..26062fc709 100644 --- a/qa/testcases/test_002_board_class.py +++ b/qa/testcases/test_002_board_class.py @@ -57,9 +57,9 @@ class TestBoardClass(unittest.TestCase): bounding_box = pcb.ComputeBoundingBox() height, width = ToMM(bounding_box.GetSize()) - clearance = ToMM(track.GetClearance()*2) - self.assertAlmostEqual(width, (30-10) + 0.5 + clearance, 2) - self.assertAlmostEqual(height, (20-10) + 0.5 + clearance, 2) + margin = 0 # margin around bounding boxes (currently 0) + self.assertAlmostEqual(width, (30-10) + 0.5 + margin, 2) + self.assertAlmostEqual(height, (20-10) + 0.5 + margin, 2) def test_pcb_get_pad(self): pcb = BOARD()