File tree Expand file tree Collapse file tree
src/opengeodeweb_back/routes/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ def model_components() -> flask.Response:
4646 viewer_id = uuid_to_flat_index [geode_id ]
4747
4848 mesh_component_object = {
49- "id" : params .id ,
5049 "viewer_id" : viewer_id ,
5150 "geode_id" : geode_id ,
5251 "name" : component_name ,
@@ -61,8 +60,9 @@ def model_components() -> flask.Response:
6160 for id in ids :
6261 geode_id = id .string ()
6362 collection_component_object = {
64- "id " : params . id ,
63+ "geode_id " : geode_id ,
6564 "name" : geode_id ,
65+ "type" : component_type ,
6666 }
6767 collection_components .append (collection_component_object )
6868
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ def test_model_components(client: FlaskClient) -> None:
3434 assert len (mesh_components ) > 0
3535 for mesh_component in mesh_components :
3636 assert isinstance (mesh_component , object )
37- assert isinstance (mesh_component ["id" ], str )
3837 assert isinstance (mesh_component ["geode_id" ], str )
3938 assert isinstance (mesh_component ["viewer_id" ], int )
4039 assert isinstance (mesh_component ["name" ], str )
@@ -44,7 +43,7 @@ def test_model_components(client: FlaskClient) -> None:
4443 assert isinstance (collection_components , list )
4544 for collection_component in collection_components :
4645 assert isinstance (collection_component , object )
47- assert isinstance (collection_component ["id " ], str )
46+ assert isinstance (collection_component ["geode_id " ], str )
4847 assert isinstance (collection_component ["name" ], str )
4948
5049
You can’t perform that action at this time.
0 commit comments