Skip to content

Commit 748b863

Browse files
committed
revert
1 parent c4500cb commit 748b863

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/opengeodeweb_back/utils_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,5 +333,5 @@ def generate_native_viewable_and_light_viewable_from_file(
333333
data_path = create_data_folder_from_id(data.id)
334334
full_input_filename = geode_functions.upload_file_path(input_file)
335335
geode_object = generic_geode_object.load(full_input_filename)
336-
geode_object.builder().set_name(input_file.split(".")[0])
336+
geode_object.builder().set_name(os.path.splitext(input_file)[0])
337337
return save_all_viewables_and_return_info(geode_object, data, data_path)

tests/test_utils_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def test_generate_native_viewable_and_light_viewable_from_file_with_multi_dots(
226226
result = utils_functions.generate_native_viewable_and_light_viewable_from_file(
227227
GeodeBRep.geode_object_type(), "cube.test.og_brep"
228228
)
229-
assert result["name"] == "cube"
229+
assert result["name"] == "cube.test"
230230

231231

232232
def test_send_file_multiple_returns_zip(client: FlaskClient, tmp_path: Path) -> None:

0 commit comments

Comments
 (0)