Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 19, 2024
1 parent d1f5843 commit c0c9601
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def test_disp_norm_all(mapdl, static_solve):
) # lowercase intentional
def test_disp_plot(mapdl, static_solve, comp):
if comp == "all":
context = pytest.raises(ValueError, '"ALL" not allowed in this context')
context = pytest.raises(
ValueError, match='"ALL" not allowed in this context'
)
else:
context = NullContext()

Expand Down Expand Up @@ -636,7 +638,9 @@ def test_elem_disp(mapdl, static_solve, comp):
mapdl.allsel()

if comp == "all":
context = pytest.raises(ValueError, '"ALL" not allowed in this context')
context = pytest.raises(
ValueError, match='"ALL" not allowed in this context'
)
else:
context = NullContext()

Expand Down

0 comments on commit c0c9601

Please sign in to comment.