Skip to content

Commit

Permalink
Fix PAD_SHAPE_T value in a old python script
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-charras committed Nov 25, 2016
1 parent fe3c72b commit 8806fc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qa/testcases/test_002_board_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_pcb_bounding_box(self):

#track.SetStartEnd(wxPointMM(10.0, 10.0),
# wxPointMM(20.0, 30.0))

track.SetStart(wxPointMM(10.0, 10.0))
track.SetEnd(wxPointMM(20.0, 30.0))

Expand All @@ -68,10 +68,10 @@ def test_pcb_get_pad(self):
pad = D_PAD(module)
module.Add(pad)

pad.SetShape(PAD_OVAL)
pad.SetShape(PAD_SHAPE_OVAL)
pad.SetSize(wxSizeMM(2.0, 3.0))
pad.SetPosition(wxPointMM(0,0))

# easy case
p1 = pcb.GetPad(wxPointMM(0,0))

Expand All @@ -93,7 +93,7 @@ def test_pcb_save_and_load(self):
pcb.GetTitleBlock().SetComment1(self.COMMENT1)
result = SaveBoard(self.FILENAME,pcb)
self.assertTrue(result)

pcb2 = LoadBoard(self.FILENAME)
self.assertNotEqual(pcb2,None)

Expand Down Expand Up @@ -129,4 +129,4 @@ def test_pcb_layer_id_get(self):

if __name__ == '__main__':
unittest.main()

0 comments on commit 8806fc0

Please sign in to comment.