File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ def test_field_shell_plot_scoping_elemental(multishells):
253253
254254
255255@pytest .mark .skipif (not HAS_PYVISTA , reason = "Please install pyvista" )
256- def test_throw_shell_layers (multishells ):
256+ def test_plotter_plot_contour_throw_shell_layers (multishells ):
257257 model = core .Model (multishells )
258258 stress = model .results .stress ()
259259 scoping = core .Scoping ()
@@ -269,6 +269,17 @@ def test_throw_shell_layers(multishells):
269269 f .plot (shell_layers = "test" )
270270
271271
272+ @pytest .mark .skipif (not HAS_PYVISTA , reason = "Please install pyvista" )
273+ def test_dpf_plotter_add_field_throw_shell_layer (multishells ):
274+ field : core .Field = core .operators .result .stress (
275+ data_sources = core .DataSources (multishells ),
276+ requested_location = core .locations .elemental ,
277+ ).eval ()[1 ]
278+ plt = DpfPlotter ()
279+ with pytest .raises (TypeError ):
280+ plt .add_field (field = field , shell_layer = "test" )
281+
282+
272283@pytest .mark .skipif (not HAS_PYVISTA , reason = "Please install pyvista" )
273284def test_plot_fieldscontainer_on_mesh_scoping (multishells ):
274285 model = core .Model (multishells )
You can’t perform that action at this time.
0 commit comments