Skip to content

Commit 3972d58

Browse files
authored
Move FieldsContainer.plot test (#1380)
* Move test_fields_container_plot to test_plotter.py Signed-off-by: paul.profizi <[email protected]> * Move test_fields_container_plot to test_plotter.py Signed-off-by: paul.profizi <[email protected]> --------- Signed-off-by: paul.profizi <[email protected]>
1 parent ffa2f41 commit 3972d58

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tests/test_fieldscontainer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,3 @@ def test_fields_container_empty_tf_support(server_type):
527527
fields_container = dpf.FieldsContainer(server=server_type)
528528

529529
assert fields_container.time_freq_support == None
530-
531-
532-
def test_fields_container_plot(server_type, disp_fc):
533-
disp_fc.plot()

tests/test_plotter.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ def test_plot_fieldscontainer_on_mesh(allkindofcomplexity):
137137
remove_picture(picture)
138138

139139

140+
@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
141+
def test_fields_container_plot(allkindofcomplexity):
142+
model = dpf.core.Model(allkindofcomplexity)
143+
disp_fc = model.results.displacement().outputs.fields_container()
144+
disp_fc.plot()
145+
146+
140147
@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
141148
def test_field_elemental_plot(allkindofcomplexity):
142149
model = Model(allkindofcomplexity)

0 commit comments

Comments
 (0)