File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/opengeodeweb_back/routes Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -304,21 +304,27 @@ def create_point():
304304 200 ,
305305 )
306306
307+
307308with open (os .path .join (schemas , "texture_coordinates.json" ), "r" ) as file :
308309 texture_coordinates_json = json .load (file )
309310
311+
310312@routes .route (
311313 texture_coordinates_json ["route" ],
312314 methods = texture_coordinates_json ["methods" ],
313315)
314316def texture_coordinates ():
315317 DATA_FOLDER_PATH = flask .current_app .config ["DATA_FOLDER_PATH" ]
316318 utils_functions .validate_request (flask .request , texture_coordinates_json )
317- data = geode_functions .load (flask .request .json ["input_geode_object" ], os .path .join (DATA_FOLDER_PATH , flask .request .json ["filename" ]))
319+ data = geode_functions .load (
320+ flask .request .json ["input_geode_object" ],
321+ os .path .join (DATA_FOLDER_PATH , flask .request .json ["filename" ]),
322+ )
318323 texture_coordinates = data .texture_manager ().texture_names ()
319324
320325 return flask .make_response ({"texture_coordinates" : texture_coordinates }, 200 )
321326
327+
322328with open (
323329 os .path .join (schemas , "vertex_attribute_names.json" ),
324330 "r" ,
Original file line number Diff line number Diff line change @@ -166,9 +166,6 @@ def get_full_data():
166166 test_utils .test_route_wrong_params (client , route , get_full_data )
167167
168168
169-
170-
171-
172169def test_texture_coordinates (client ):
173170 response = client .post (
174171 "/texture_coordinates" ,
@@ -183,7 +180,7 @@ def test_texture_coordinates(client):
183180 for texture_coordinate in texture_coordinates :
184181 assert type (texture_coordinate ) is str
185182
186-
183+
187184def test_vertex_attribute_names (client ):
188185 route = f"/vertex_attribute_names"
189186 for geode_object , value in geode_objects .geode_objects_dict ().items ():
You can’t perform that action at this time.
0 commit comments