Skip to content

Commit 56a5a0d

Browse files
SpliiTgithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent 627011d commit 56a5a0d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/opengeodeweb_back/geode_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ def geode_object_output_extensions(
7373
object_output_extensions[output_extension] = bool_is_saveable
7474
if hasattr(mixin_geode_object, "geode_object_type"):
7575
results[mixin_geode_object.geode_object_type()] = object_output_extensions
76-
return results
76+
return results

src/opengeodeweb_back/utils_functions.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ def save_all_viewables_and_return_info(
212212
data.native_file = os.path.basename(native_files[0])
213213
data.viewable_file = os.path.basename(viewable_path)
214214
data.light_viewable_file = os.path.basename(light_path)
215-
215+
216216
if not data.input_file:
217217
data.input_file = data.native_file
218-
218+
219219
assert data.native_file is not None
220220
assert data.viewable_file is not None
221221
assert data.light_viewable_file is not None
@@ -227,10 +227,11 @@ def save_all_viewables_and_return_info(
227227
"viewer_type": data.viewer_object,
228228
"binary_light_viewable": binary_light_viewable.decode("utf-8"),
229229
"geode_object_type": data.geode_object,
230-
"input_file": data.input_file or "",
230+
"input_file": data.input_file or "",
231231
"additional_files": data.additional_files or [],
232232
}
233233

234+
234235
def generate_native_viewable_and_light_viewable_from_object(
235236
geode_object: GeodeObject,
236237
) -> dict[str, str | list[str]]:

tests/test_utils_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ def test_generate_native_viewable_and_light_viewable_from_object(
193193
assert isinstance(result["viewer_type"], str)
194194
assert isinstance(result["binary_light_viewable"], str)
195195
assert result["binary_light_viewable"].startswith('<?xml version="1.0"?>')
196-
196+
197197
assert result["input_file"] == result["native_file"]
198-
198+
199199
data = Data.get(result["id"])
200200
assert data is not None
201201
assert data.input_file == data.native_file
202202
assert data.light_viewable_file is not None
203-
assert data.light_viewable_file.endswith('.vtp')
204-
203+
assert data.light_viewable_file.endswith(".vtp")
204+
205205
data_path = os.path.join(app.config["DATA_FOLDER_PATH"], result["id"])
206206
assert os.path.exists(os.path.join(data_path, result["native_file"]))
207207
assert os.path.exists(os.path.join(data_path, result["viewable_file"]))

0 commit comments

Comments
 (0)