Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Oct 18, 2024
1 parent e6e3289 commit 964861f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyNastran/bdf/cards/test/test_aero.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,16 +1262,22 @@ def test_caero1_1(self):
caero1l = CAERO1(eid, pid, igid, p1, x12, p4, x43, cp=cp,
nspan=nspan, lspan=lspan, nchord=nchord, lchord=lchord,
comment='caero1')
with self.assertRaises(AssertionError):
with self.assertRaises(ValueError):
caero1l.validate()
caero1l.p1 = np.array([0., 0., 0.])
#with self.assertRaises(AssertionError):
caero1l.validate()

p1 = [0., 0., 0.]
p4 = [1., 2., 3., 4.]
caero1m = CAERO1(eid, pid, igid, p1, x12, p4, x43, cp=cp,
nspan=nspan, lspan=lspan, nchord=nchord, lchord=lchord,
comment='caero1')
with self.assertRaises(AssertionError):
with self.assertRaises(ValueError):
caero1m.validate()
caero1m.p4 = np.array([0., 2., 3.])
# with self.assertRaises(AssertionError):
caero1m.validate()

p4 = [1., 2., 3.]
eid = 8
Expand Down

0 comments on commit 964861f

Please sign in to comment.