@@ -171,7 +171,11 @@ def get_full_data():
171171
172172def test_texture_coordinates (client , test_id ):
173173 with client .application .app_context ():
174- data = Data .create (geode_object = "PolygonalSurface3D" , input_file = "hat.vtp" )
174+ data = Data .create (
175+ geode_object = "PolygonalSurface3D" ,
176+ viewer_object = geode_functions .get_object_type ("PolygonalSurface3D" ),
177+ input_file = "hat.vtp" ,
178+ )
175179 data .native_file_name = "hat.vtp"
176180 session = get_session ()
177181 if session :
@@ -195,7 +199,11 @@ def test_vertex_attribute_names(client, test_id):
195199 route = f"/opengeodeweb_back/vertex_attribute_names"
196200
197201 with client .application .app_context ():
198- data = Data .create (geode_object = "PolygonalSurface3D" , input_file = "test.vtp" )
202+ data = Data .create (
203+ geode_object = "PolygonalSurface3D" ,
204+ viewer_object = geode_functions .get_object_type ("PolygonalSurface3D" ),
205+ input_file = "test.vtp" ,
206+ )
199207 data .native_file_name = "test.vtp"
200208 session = get_session ()
201209 if session :
@@ -217,7 +225,11 @@ def test_polygon_attribute_names(client, test_id):
217225 route = f"/opengeodeweb_back/polygon_attribute_names"
218226
219227 with client .application .app_context ():
220- data = Data .create (geode_object = "PolygonalSurface3D" , input_file = "test.vtp" )
228+ data = Data .create (
229+ geode_object = "PolygonalSurface3D" ,
230+ viewer_object = geode_functions .get_object_type ("PolygonalSurface3D" ),
231+ input_file = "test.vtp" ,
232+ )
221233 data .native_file_name = "test.vtp"
222234 session = get_session ()
223235 if session :
@@ -239,7 +251,11 @@ def test_polyhedron_attribute_names(client, test_id):
239251 route = f"/opengeodeweb_back/polyhedron_attribute_names"
240252
241253 with client .application .app_context ():
242- data = Data .create (geode_object = "PolyhedralSolid3D" , input_file = "test.vtu" )
254+ data = Data .create (
255+ geode_object = "PolyhedralSolid3D" ,
256+ viewer_object = geode_functions .get_object_type ("PolyhedralSolid3D" ),
257+ input_file = "test.vtu" ,
258+ )
243259 data .native_file_name = "test.vtu"
244260 session = get_session ()
245261 if session :
0 commit comments