Skip to content

Commit 01fa755

Browse files
committed
test
1 parent e8596a3 commit 01fa755

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,7 @@ def geode_objects_and_output_extensions():
217217
)
218218
data = geode_functions.load(
219219
flask.request.json["input_geode_object"],
220-
geode_functions.upload_file_path(UPLOAD_FOLDER, flask.request.json["filename"]),
221-
geode_functions.build_upload_file_path(
222-
UPLOAD_FOLDER, flask.request.json["filename"]
223-
),
220+
geode_functions.upload_file_path(UPLOAD_FOLDER, flask.request.json["filename"])
224221
)
225222
geode_objects_and_output_extensions = (
226223
geode_functions.geode_objects_output_extensions(
@@ -370,7 +367,7 @@ def polygon_attribute_names():
370367
methods=polyhedron_attribute_names_json["methods"],
371368
)
372369
def polyhedron_attribute_names():
373-
utils_functions.validate_request(flask.request, vertex_attribute_names_json)
370+
utils_functions.validate_request(flask.request, polyhedron_attribute_names_json)
374371
data = geode_functions.load_data(
375372
flask.request.json["input_geode_object"],
376373
flask.request.json,

src/opengeodeweb_back/routes/models/blueprint_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def extract_uuids_endpoint():
5555
try:
5656
model = geode_functions.load_data(
5757
flask.request.json["geode_object"],
58-
flask.current_app.config["DATA_FOLDER_PATH"],
5958
flask.request.json,
6059
)
6160
except FileNotFoundError:

tests/test_models_routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import shutil
3+
import flask
34

45
import src.opengeodeweb_back.geode_functions as geode_functions
56

0 commit comments

Comments
 (0)