Skip to content

Commit e8596a3

Browse files
committed
test
1 parent 6085729 commit e8596a3

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/opengeodeweb_back/geode_functions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def load_data(geode_object: str, request_json: dict):
5151

5252

5353
def data_file_path(request_json, filename):
54-
data_folder_path = flask.current_app.config[
55-
"DATA_FOLDER_PATH"
56-
] # Use the load_data function to get the data folder path
54+
data_folder_path = flask.current_app.config["DATA_FOLDER_PATH"]
5755
return os.path.join(
5856
data_folder_path,
5957
request_json["id"],

src/opengeodeweb_back/routes/blueprint_routes.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,8 @@ def missing_files():
125125

126126
missing_files = geode_functions.missing_files(
127127
flask.request.json["input_geode_object"],
128-
geode_functions.upload_file_path(UPLOAD_FOLDER, flask.request.json["filename"]),
129-
geode_functions.build_upload_file_path(
130-
UPLOAD_FOLDER, flask.request.json["filename"]
131-
),
132-
)
128+
geode_functions.upload_file_path(UPLOAD_FOLDER, flask.request.json["filename"])
129+
)
133130
has_missing_files = missing_files.has_missing_files()
134131

135132
mandatory_files = []

tests/test_models_routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import shutil
33

4+
import src.opengeodeweb_back.geode_functions as geode_functions
45

56
def test_model_mesh_components(client, test_id):
67
route = "/models/vtm_component_indices"

0 commit comments

Comments
 (0)