@@ -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
979985def 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
10211031def test_plot_face_colors_from_service (modeler : Modeler , verify_image_cache ):
0 commit comments