Skip to content

Commit b707bff

Browse files
committed
Add tests
1 parent e5bbe12 commit b707bff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_plotter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,10 @@ def test_plotter_add_scoping(fluent_mixing_elbow_steady_state):
825825
plt.add_scoping(element_scoping, mesh, color="green")
826826
plt.show_figure()
827827

828+
face_scoping = core.Scoping(location=core.locations.faces, ids=mesh.faces.scoping.ids[0:100])
829+
with pytest.raises(NotImplementedError):
830+
plt.add_scoping(face_scoping, mesh)
831+
828832

829833
@pytest.mark.skipif(not HAS_PYVISTA, reason="This test requires pyvista")
830834
def test_scoping_plot(fluent_mixing_elbow_steady_state):
@@ -840,7 +844,7 @@ def test_scoping_plot(fluent_mixing_elbow_steady_state):
840844

841845

842846
@pytest.mark.skipif(not HAS_PYVISTA, reason="This test requires pyvista")
843-
def test_scopingscontainer_plot(fluent_mixing_elbow_steady_state):
847+
def test_scopings_container_plot(fluent_mixing_elbow_steady_state):
844848
mesh: core.MeshedRegion = core.operators.mesh.mesh_provider(
845849
data_sources=fluent_mixing_elbow_steady_state()
846850
).eval()

0 commit comments

Comments
 (0)