diff --git a/tests/test_fieldscontainer.py b/tests/test_fieldscontainer.py index 8752cf8985c..6fdb172ca01 100644 --- a/tests/test_fieldscontainer.py +++ b/tests/test_fieldscontainer.py @@ -527,7 +527,3 @@ def test_fields_container_empty_tf_support(server_type): fields_container = dpf.FieldsContainer(server=server_type) assert fields_container.time_freq_support == None - - -def test_fields_container_plot(server_type, disp_fc): - disp_fc.plot() diff --git a/tests/test_plotter.py b/tests/test_plotter.py index 02078dbe7dc..c50e7f0a1ef 100644 --- a/tests/test_plotter.py +++ b/tests/test_plotter.py @@ -137,6 +137,13 @@ def test_plot_fieldscontainer_on_mesh(allkindofcomplexity): remove_picture(picture) +@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista") +def test_fields_container_plot(allkindofcomplexity): + model = dpf.core.Model(allkindofcomplexity) + disp_fc = model.results.displacement().outputs.fields_container() + disp_fc.plot() + + @pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista") def test_field_elemental_plot(allkindofcomplexity): model = Model(allkindofcomplexity)