Skip to content

Commit de1cf18

Browse files
test: update test_deprecated_params to include make_block fixture to avoid plotting empty meshes error (#4168)
* test: update test_deprecated_params to include make_block fixture to avoid plotting empty meshes error * chore: adding changelog file 4168.miscellaneous.md [dependabot-skip] * fix: remove allow_empty_mesh setting from global_theme to prevent empty mesh plotting. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 1876d75 commit de1cf18

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test: update test_deprecated_params to include make_block fixture to avoid plotting empty meshes error

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ def requires_dependency(dependency: str):
218218

219219
# Necessary for CI plotting
220220
pyvista.OFF_SCREEN = True
221-
pyvista.global_theme.allow_empty_mesh = True
222221

223222
from ansys.mapdl.core.plotting.theme import _apply_default_theme
224223

tests/test_plotting.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
allow_module_level=True, reason="Skipping because 'pyvista' is not installed"
3535
)
3636

37-
import pyvista
38-
39-
pyvista.global_theme.allow_empty_mesh = True
4037

4138
from ansys.mapdl.core.errors import ComponentDoesNotExits, MapdlRuntimeError
4239
from ansys.mapdl.core.plotting import GraphicsBackend
@@ -1339,7 +1336,7 @@ def test_plot_path_screenshoot(mapdl, cleared, tmpdir):
13391336
mapdl.graphics("FULL")
13401337

13411338

1342-
def test_deprecated_params(mapdl):
1339+
def test_deprecated_params(mapdl, make_block):
13431340
with pytest.warns(DeprecationWarning, match="'vtk' and 'use_vtk' are deprecated"):
13441341
mapdl.eplot(vtk=True)
13451342
with pytest.warns(DeprecationWarning, match="'vtk' and 'use_vtk' are deprecated"):

0 commit comments

Comments
 (0)