fix test_002_board_class.py according to changes (fixes) in bounding box track calculations

This commit is contained in:
jean-pierre charras 2018-06-12 17:21:03 +02:00
parent ade3c2b129
commit e624bbae8a
1 changed files with 3 additions and 3 deletions

View File

@ -57,9 +57,9 @@ class TestBoardClass(unittest.TestCase):
bounding_box = pcb.ComputeBoundingBox() bounding_box = pcb.ComputeBoundingBox()
height, width = ToMM(bounding_box.GetSize()) height, width = ToMM(bounding_box.GetSize())
clearance = ToMM(track.GetClearance()*2) margin = 0 # margin around bounding boxes (currently 0)
self.assertAlmostEqual(width, (30-10) + 0.5 + clearance, 2) self.assertAlmostEqual(width, (30-10) + 0.5 + margin, 2)
self.assertAlmostEqual(height, (20-10) + 0.5 + clearance, 2) self.assertAlmostEqual(height, (20-10) + 0.5 + margin, 2)
def test_pcb_get_pad(self): def test_pcb_get_pad(self):
pcb = BOARD() pcb = BOARD()