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 @@ -61,7 +61,7 @@ def model_components() -> flask.Response:
6161 for id in ids :
6262 geode_id = id .string ()
6363 collection_component_object = {
64- "id" : id ,
64+ "id" : params . id ,
6565 "name" : geode_id ,
6666 }
6767 collection_components .append (collection_component_object )
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ def test_model_components(client: FlaskClient) -> None:
4242 assert "collection_components" in response .get_json ()
4343 collection_components = response .get_json ()["collection_components" ]
4444 assert isinstance (collection_components , list )
45+ for collection_component in collection_components :
46+ assert isinstance (collection_component , object )
47+ assert isinstance (collection_component ["id" ], str )
48+ assert isinstance (collection_component ["name" ], str )
4549
4650
4751def test_export_project_route (client : FlaskClient , tmp_path : Path ) -> None :
You can’t perform that action at this time.
0 commit comments