Skip to content

Commit 23a7c1e

Browse files
authored
Merge pull request #195 from Geode-solutions/fix/treeView
Fix/tree view
2 parents 8b4c24e + abee446 commit 23a7c1e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ werkzeug==3.1.2
6060
# flask
6161
# flask-cors
6262

63-
opengeodeweb-microservice==1.*,>=1.0.4rc9

src/opengeodeweb_back/utils_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def save_all_viewables_and_return_info(
213213
"object_type": geode_functions.get_object_type(geode_object),
214214
"binary_light_viewable": binary_light_viewable.decode("utf-8"),
215215
"geode_object": data_entry.geode_object,
216-
"input_files": data_entry.input_file,
216+
"input_file": data_entry.input_file,
217217
"additional_files": data_entry.additional_files,
218218
}
219219

tests/test_utils_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_save_all_viewables_and_return_info(client):
116116
assert isinstance(result["object_type"], str)
117117
assert isinstance(result["binary_light_viewable"], str)
118118
assert result["geode_object"] == geode_object
119-
assert result["input_files"] == input_file
119+
assert result["input_file"] == input_file
120120

121121
db_entry = Data.get(result["id"])
122122
assert db_entry is not None
@@ -173,7 +173,7 @@ def test_generate_native_viewable_and_light_viewable_from_object(client):
173173
assert re.match(r"[0-9a-f]{32}", result["id"])
174174
assert isinstance(result["object_type"], str)
175175
assert isinstance(result["binary_light_viewable"], str)
176-
assert result["input_files"] == ""
176+
assert result["input_file"] == ""
177177

178178

179179
def test_generate_native_viewable_and_light_viewable_from_file(client):
@@ -195,4 +195,4 @@ def test_generate_native_viewable_and_light_viewable_from_file(client):
195195
assert re.match(r"[0-9a-f]{32}", result["id"])
196196
assert isinstance(result["object_type"], str)
197197
assert isinstance(result["binary_light_viewable"], str)
198-
assert isinstance(result["input_files"], str)
198+
assert isinstance(result["input_file"], str)

0 commit comments

Comments
 (0)