Skip to content

Commit 1233d9f

Browse files
committed
Add test_dpf_plotter_add_field_change_shell_layer to test_plotter.py
1 parent 75e3e7b commit 1233d9f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_plotter.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,16 @@ def test_dpf_plotter_add_field_throw_shell_layer(multishells):
280280
plt.add_field(field=field, shell_layer="test")
281281

282282

283+
@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
284+
def test_dpf_plotter_add_field_change_shell_layer(multishells):
285+
field: core.Field = core.operators.result.stress(
286+
data_sources=core.DataSources(multishells),
287+
requested_location=core.locations.elemental,
288+
).eval()[1]
289+
plt = DpfPlotter()
290+
plt.add_field(field=field)
291+
292+
283293
@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
284294
def test_plot_fieldscontainer_on_mesh_scoping(multishells):
285295
model = core.Model(multishells)

0 commit comments

Comments
 (0)