Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Sep 1, 2023
1 parent f668378 commit 8b92dfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2132,20 +2132,20 @@ def test_distributed(mapdl):


def test_non_used_kwargs(mapdl):
with pytest.raises(ValueError):
with pytest.warns(UserWarning):
mapdl.prep7(non_valid_argument=2)

with pytest.raises(ValueError):
with pytest.warns(UserWarning):
mapdl.run("/prep7", True, False, unvalid_argument=2)

kwarg = {"unvalid_argument": 2}
with pytest.raises(ValueError):
with pytest.warns(UserWarning):
mapdl.run("/prep7", True, None, **kwarg)


def test_non_valid_kwarg(mapdl):
mapdl.prep7()
mapdl.blc4(0, 0, 1, 1, 1)

with pytest.raises(ValueError):
with pytest.warns(UserWarning):
mapdl.cdwrite(options="DB", fname="test1", ext="cdb")

0 comments on commit 8b92dfe

Please sign in to comment.