@@ -49,9 +49,9 @@ def test_apply_textures(server):
49
49
50
50
server .call (
51
51
"create_object_pipeline" ,
52
- [{"id" : "123456789" , "file_name" : "emperor_penguin .vtp" }],
52
+ [{"id" : "123456789" , "file_name" : "hat .vtp" }],
53
53
)
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" )
55
55
assert server .compare_image (3 , abs_path ) == True
56
56
57
57
server .call (
@@ -61,14 +61,14 @@ def test_apply_textures(server):
61
61
"id" : "123456789" ,
62
62
"textures" : [
63
63
{
64
- "texture_name" : "PenguinMat " ,
65
- "texture_file_name" : "penguin_colors .vti" ,
64
+ "texture_name" : "lambert2SG " ,
65
+ "texture_file_name" : "TopHat .vti" ,
66
66
}
67
67
],
68
68
}
69
69
],
70
70
)
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" )
72
72
assert server .compare_image (3 , abs_path ) == True
73
73
74
74
@@ -78,7 +78,7 @@ def test_get_point_position(server):
78
78
"create_object_pipeline" ,
79
79
[{"id" : "123456789" , "file_name" : "hat.vtp" }],
80
80
)
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" )
82
82
assert server .compare_image (3 , abs_path ) == True
83
83
84
84
server .call ("get_point_position" , [{"x" : 0 , "y" : 0 }])
@@ -92,3 +92,31 @@ def test_get_point_position(server):
92
92
assert type (x ) is float
93
93
assert type (y ) is float
94
94
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