Skip to content

Commit

Permalink
trying catching the warn
Browse files Browse the repository at this point in the history
  • Loading branch information
german committed Mar 21, 2024
1 parent c666df8 commit b9de139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def test_tbft(mapdl, cleared, tmpdir, option2, option3, option4):
output = mapdl.tbft("EADD", mat_id, "UNIA", option2, option3, option4, "", "", "")
assert "Successfully Constructed Material Model" in output

with pytest.warns(UserWarning, match="Cannot create another with the same name"):
with pytest.warns(UserWarning):
# checking warning if overwriting
mapdl.tbft("FADD", mat_id, "HYPER", "MOONEY", "3")

Expand Down

0 comments on commit b9de139

Please sign in to comment.