diff --git a/doc/changelog.d/2113.dependencies.md b/doc/changelog.d/2113.dependencies.md new file mode 100644 index 0000000000..1551de2b70 --- /dev/null +++ b/doc/changelog.d/2113.dependencies.md @@ -0,0 +1 @@ +Bump pytest-pyvista from 0.1.9 to 0.2.0 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 789067f2cc..57949befeb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,7 +71,7 @@ tests = [ "pygltflib==1.16.4", "pytest==8.4.1", "pytest-cov==6.2.1", - "pytest-pyvista==0.1.9", + "pytest-pyvista==0.2.0", "pyvista[jupyter]==0.45.2", "requests==2.32.4", "scipy==1.15.3", @@ -82,7 +82,7 @@ tests = [ tests-minimal = [ "pytest==8.4.1", "pytest-cov==6.2.1", - "pytest-pyvista==0.1.9", + "pytest-pyvista==0.2.0", ] doc = [ "ansys-sphinx-theme[autoapi]==1.5.3", diff --git a/tests/integration/test_plotter.py b/tests/integration/test_plotter.py index 688d2e4841..e1de5e5576 100644 --- a/tests/integration/test_plotter.py +++ b/tests/integration/test_plotter.py @@ -935,7 +935,7 @@ def test_plot_design_face_colors(modeler: Modeler, verify_image_cache): @skip_no_xserver -def test_export_glb(modeler: Modeler, verify_image_cache): +def test_export_glb(modeler: Modeler): """Test exporting a box to glb.""" # Create a Sketch sketch = Sketch() @@ -953,9 +953,13 @@ def test_export_glb(modeler: Modeler, verify_image_cache): output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb") pl.export_glb(filename=output_glb_path) + # Add suffix to the output path + output_glb_path = output_glb_path.with_suffix(".glb") + assert output_glb_path.exists(), "GLB file was not created successfully." + @skip_no_xserver -def test_export_glb_with_color(modeler: Modeler, verify_image_cache): +def test_export_glb_with_color(modeler: Modeler): """Test exporting a box to glb.""" # Create a Sketch sketch = Sketch() @@ -971,9 +975,11 @@ def test_export_glb_with_color(modeler: Modeler, verify_image_cache): pl = GeometryPlotter(use_service_colors=True) pl.plot(box_body) - output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_colored") + output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_colored.glb") pl.export_glb(filename=output_glb_path) + assert output_glb_path.exists(), "GLB file with color was not created successfully." + @skip_no_xserver def test_export_glb_with_face_color(modeler: Modeler): @@ -993,12 +999,14 @@ def test_export_glb_with_face_color(modeler: Modeler): pl = GeometryPlotter(use_service_colors=True) - output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_face_colored") + output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_box_glb_face_colored.glb") pl.export_glb(box_body, filename=output_glb_path) + assert output_glb_path.exists(), "GLB file with face color was not created successfully." + @skip_no_xserver -def test_export_glb_cylinder_with_face_color(modeler: Modeler, verify_image_cache): +def test_export_glb_cylinder_with_face_color(modeler: Modeler): """Test exporting a cylinder to glb.""" # Create your design on the server side design = modeler.create_design("GLBCylinderWithFaceColors") @@ -1013,9 +1021,11 @@ def test_export_glb_cylinder_with_face_color(modeler: Modeler, verify_image_cach pl = GeometryPlotter(use_service_colors=True) - output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_cylinder_glb_face_colored") + output_glb_path = Path(IMAGE_RESULTS_DIR, "plot_cylinder_glb_face_colored.glb") pl.export_glb(cyl, filename=output_glb_path) + assert output_glb_path.exists(), "GLB file with face color was not created successfully." + @skip_no_xserver def test_plot_face_colors_from_service(modeler: Modeler, verify_image_cache):