Fix PAD_SHAPE_T value in a old python script

This commit is contained in:
jean-pierre charras 2016-11-25 14:52:34 +01:00
parent fe3c72b6de
commit 8806fc03dc
1 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ class TestBoardClass(unittest.TestCase):
#track.SetStartEnd(wxPointMM(10.0, 10.0), #track.SetStartEnd(wxPointMM(10.0, 10.0),
# wxPointMM(20.0, 30.0)) # wxPointMM(20.0, 30.0))
track.SetStart(wxPointMM(10.0, 10.0)) track.SetStart(wxPointMM(10.0, 10.0))
track.SetEnd(wxPointMM(20.0, 30.0)) track.SetEnd(wxPointMM(20.0, 30.0))
@ -68,10 +68,10 @@ class TestBoardClass(unittest.TestCase):
pad = D_PAD(module) pad = D_PAD(module)
module.Add(pad) module.Add(pad)
pad.SetShape(PAD_OVAL) pad.SetShape(PAD_SHAPE_OVAL)
pad.SetSize(wxSizeMM(2.0, 3.0)) pad.SetSize(wxSizeMM(2.0, 3.0))
pad.SetPosition(wxPointMM(0,0)) pad.SetPosition(wxPointMM(0,0))
# easy case # easy case
p1 = pcb.GetPad(wxPointMM(0,0)) p1 = pcb.GetPad(wxPointMM(0,0))
@ -93,7 +93,7 @@ class TestBoardClass(unittest.TestCase):
pcb.GetTitleBlock().SetComment1(self.COMMENT1) pcb.GetTitleBlock().SetComment1(self.COMMENT1)
result = SaveBoard(self.FILENAME,pcb) result = SaveBoard(self.FILENAME,pcb)
self.assertTrue(result) self.assertTrue(result)
pcb2 = LoadBoard(self.FILENAME) pcb2 = LoadBoard(self.FILENAME)
self.assertNotEqual(pcb2,None) self.assertNotEqual(pcb2,None)
@ -129,4 +129,4 @@ class TestBoardClass(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()