From 2ff623dcb9371e76f39d8db0b964c36a0a3029ff Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Date: Sun, 1 Feb 2015 19:31:47 +0100 Subject: [PATCH] Fix the pcb bouncing box test adding the track clearance. --- qa/testcases/test_002_board_class.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qa/testcases/test_002_board_class.py b/qa/testcases/test_002_board_class.py index 98f82abc29..64dff3a6a9 100644 --- a/qa/testcases/test_002_board_class.py +++ b/qa/testcases/test_002_board_class.py @@ -51,8 +51,9 @@ class TestBoardClass(unittest.TestCase): bounding_box = pcb.ComputeBoundingBox() height, width = ToMM(bounding_box.GetSize()) - self.assertAlmostEqual(width, (30-10) + 0.5, 2) - self.assertAlmostEqual(height, (20-10) + 0.5, 2) + clearance = ToMM(track.GetClearance()*2) + self.assertAlmostEqual(width, (30-10) + 0.5 + clearance, 2) + self.assertAlmostEqual(height, (20-10) + 0.5 + clearance, 2) def test_pcb_get_pad(self): pcb = BOARD()