Skip to content

Commit 868d0be

Browse files
dependabot[bot]pyansys-ci-botRobPasMuepre-commit-ci[bot]
authored
build: bump pytest-pyvista from 0.1.9 to 0.2.0 (#2113)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d2610b6 commit 868d0be

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

doc/changelog.d/2113.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump pytest-pyvista from 0.1.9 to 0.2.0

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tests = [
7171
"pygltflib==1.16.4",
7272
"pytest==8.4.1",
7373
"pytest-cov==6.2.1",
74-
"pytest-pyvista==0.1.9",
74+
"pytest-pyvista==0.2.0",
7575
"pyvista[jupyter]==0.45.2",
7676
"requests==2.32.4",
7777
"scipy==1.15.3",
@@ -82,7 +82,7 @@ tests = [
8282
tests-minimal = [
8383
"pytest==8.4.1",
8484
"pytest-cov==6.2.1",
85-
"pytest-pyvista==0.1.9",
85+
"pytest-pyvista==0.2.0",
8686
]
8787
doc = [
8888
"ansys-sphinx-theme[autoapi]==1.5.3",

tests/integration/test_plotter.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def test_plot_design_face_colors(modeler: Modeler, verify_image_cache):
935935

936936

937937
@skip_no_xserver
938-
def test_export_glb(modeler: Modeler, verify_image_cache):
938+
def test_export_glb(modeler: Modeler):
939939
"""Test exporting a box to glb."""
940940
# Create a Sketch
941941
sketch = Sketch()
@@ -953,9 +953,13 @@ def test_export_glb(modeler: Modeler, verify_image_cache):
953953
output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb")
954954
pl.export_glb(filename=output_glb_path)
955955

956+
# Add suffix to the output path
957+
output_glb_path = output_glb_path.with_suffix(".glb")
958+
assert output_glb_path.exists(), "GLB file was not created successfully."
959+
956960

957961
@skip_no_xserver
958-
def test_export_glb_with_color(modeler: Modeler, verify_image_cache):
962+
def test_export_glb_with_color(modeler: Modeler):
959963
"""Test exporting a box to glb."""
960964
# Create a Sketch
961965
sketch = Sketch()
@@ -971,9 +975,11 @@ def test_export_glb_with_color(modeler: Modeler, verify_image_cache):
971975
pl = GeometryPlotter(use_service_colors=True)
972976
pl.plot(box_body)
973977

974-
output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_colored")
978+
output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_colored.glb")
975979
pl.export_glb(filename=output_glb_path)
976980

981+
assert output_glb_path.exists(), "GLB file with color was not created successfully."
982+
977983

978984
@skip_no_xserver
979985
def test_export_glb_with_face_color(modeler: Modeler):
@@ -993,12 +999,14 @@ def test_export_glb_with_face_color(modeler: Modeler):
993999

9941000
pl = GeometryPlotter(use_service_colors=True)
9951001

996-
output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_face_colored")
1002+
output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_face_colored.glb")
9971003
pl.export_glb(box_body, filename=output_glb_path)
9981004

1005+
assert output_glb_path.exists(), "GLB file with face color was not created successfully."
1006+
9991007

10001008
@skip_no_xserver
1001-
def test_export_glb_cylinder_with_face_color(modeler: Modeler, verify_image_cache):
1009+
def test_export_glb_cylinder_with_face_color(modeler: Modeler):
10021010
"""Test exporting a cylinder to glb."""
10031011
# Create your design on the server side
10041012
design = modeler.create_design("GLBCylinderWithFaceColors")
@@ -1013,9 +1021,11 @@ def test_export_glb_cylinder_with_face_color(modeler: Modeler, verify_image_cach
10131021

10141022
pl = GeometryPlotter(use_service_colors=True)
10151023

1016-
output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_cylinder_glb_face_colored")
1024+
output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_cylinder_glb_face_colored.glb")
10171025
pl.export_glb(cyl, filename=output_glb_path)
10181026

1027+
assert output_glb_path.exists(), "GLB file with face color was not created successfully."
1028+
10191029

10201030
@skip_no_xserver
10211031
def test_plot_face_colors_from_service(modeler: Modeler, verify_image_cache):

0 commit comments

Comments
 (0)