Skip to content

Commit

Permalink
fix: test and adding test for quality
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Sep 20, 2024
1 parent 0f9ad5b commit 894f839
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def test_aplot(cleared, mapdl, vtk):
mapdl.aplot(show_area_numbering=True)
mapdl.aplot(vtk=vtk, color_areas=vtk, show_lines=True, show_line_numbering=True)

mapdl.aplot(quality=100)
mapdl.aplot(quality=10)
mapdl.aplot(quality=-1)


Expand Down Expand Up @@ -1243,3 +1243,12 @@ def test_xplot_not_changing_geo_selection_components(

plot_func = getattr(mapdl, plot_func)
check_geometry(mapdl, plot_func)


@pytest.mark.parametrize("quality", [101, -2, 0, "as"])
def test_aplot_quality_fail(mapdl, block, quality):
with pytest.raises(
ValueError,
match="The argument 'quality' can only be a integer between 1 and 10 (included both)",
):
mapdl.aplot(quality=quality)

0 comments on commit 894f839

Please sign in to comment.