Skip to content

Commit 0c9bb4f

Browse files
Apply prepare changes
1 parent 88f115b commit 0c9bb4f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,21 +304,27 @@ def create_point():
304304
200,
305305
)
306306

307+
307308
with 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
)
314316
def 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+
322328
with open(
323329
os.path.join(schemas, "vertex_attribute_names.json"),
324330
"r",

tests/test_routes.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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-
172169
def 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+
187184
def test_vertex_attribute_names(client):
188185
route = f"/vertex_attribute_names"
189186
for geode_object, value in geode_objects.geode_objects_dict().items():

0 commit comments

Comments
 (0)