@@ -49,9 +49,9 @@ def test_apply_textures(server):
4949
5050 server .call (
5151 "create_object_pipeline" ,
52- [{"id" : "123456789" , "file_name" : "emperor_penguin .vtp" }],
52+ [{"id" : "123456789" , "file_name" : "hat .vtp" }],
5353 )
54- abs_path = os .path .join (images_dir_path , "apply_textures_1 .jpeg" )
54+ abs_path = os .path .join (images_dir_path , "create_object_pipeline .jpeg" )
5555 assert server .compare_image (3 , abs_path ) == True
5656
5757 server .call (
@@ -61,14 +61,14 @@ def test_apply_textures(server):
6161 "id" : "123456789" ,
6262 "textures" : [
6363 {
64- "texture_name" : "PenguinMat " ,
65- "texture_file_name" : "penguin_colors .vti" ,
64+ "texture_name" : "lambert2SG " ,
65+ "texture_file_name" : "TopHat .vti" ,
6666 }
6767 ],
6868 }
6969 ],
7070 )
71- abs_path = os .path .join (images_dir_path , "apply_textures_2 .jpeg" )
71+ abs_path = os .path .join (images_dir_path , "apply_textures .jpeg" )
7272 assert server .compare_image (3 , abs_path ) == True
7373
7474
@@ -78,7 +78,7 @@ def test_get_point_position(server):
7878 "create_object_pipeline" ,
7979 [{"id" : "123456789" , "file_name" : "hat.vtp" }],
8080 )
81- abs_path = os .path .join (images_dir_path , "get_point_position .jpeg" )
81+ abs_path = os .path .join (images_dir_path , "create_object_pipeline .jpeg" )
8282 assert server .compare_image (3 , abs_path ) == True
8383
8484 server .call ("get_point_position" , [{"x" : 0 , "y" : 0 }])
@@ -92,3 +92,31 @@ def test_get_point_position(server):
9292 assert type (x ) is float
9393 assert type (y ) is float
9494 assert type (z ) is float
95+
96+
97+ def test_toggle_edge_visibility (server ):
98+
99+ server .call (
100+ "create_object_pipeline" ,
101+ [{"id" : "123456789" , "file_name" : "hat.vtp" }],
102+ )
103+ abs_path = os .path .join (images_dir_path , "create_object_pipeline.jpeg" )
104+ assert server .compare_image (3 , abs_path ) == True
105+
106+ server .call ("toggle_edge_visibility" , [{"id" : "123456789" , "visibility" : True }])
107+ abs_path = os .path .join (images_dir_path , "toggle_edge_visibility.jpeg" )
108+ assert server .compare_image (3 , abs_path ) == True
109+
110+
111+ def test_set_color (server ):
112+
113+ server .call (
114+ "create_object_pipeline" ,
115+ [{"id" : "123456789" , "file_name" : "hat.vtp" }],
116+ )
117+ abs_path = os .path .join (images_dir_path , "create_object_pipeline.jpeg" )
118+ assert server .compare_image (3 , abs_path ) == True
119+
120+ server .call ("set_color" , [{"id" : "123456789" , "red" : 50 , "green" : 2 , "blue" : 250 }])
121+ abs_path = os .path .join (images_dir_path , "set_color.jpeg" )
122+ assert server .compare_image (3 , abs_path ) == True
0 commit comments