@@ -91,9 +91,12 @@ def test_create_aoi(client: FlaskClient, aoi_data: Dict[str, Any]) -> None:
9191 # Test with missing parameters
9292 test_utils .test_route_wrong_params (client , route , lambda : aoi_data .copy ()) # type: ignore
9393
94- def test_create_voi (client : FlaskClient , aoi_data : Dict [str , Any ], voi_data : Dict [str , Any ]) -> None :
94+
95+ def test_create_voi (
96+ client : FlaskClient , aoi_data : Dict [str , Any ], voi_data : Dict [str , Any ]
97+ ) -> None :
9598 """Test the creation of a VOI with valid data (including optional id)."""
96- aoi_route = "/opengeodeweb_back/create/create_aoi"
99+ aoi_route = "/opengeodeweb_back/create/create_aoi"
97100 aoi_response = client .post (aoi_route , json = aoi_data )
98101 assert aoi_response .status_code == 200
99102 aoi_id = aoi_response .json ["id" ]
@@ -111,6 +114,7 @@ def test_create_voi(client: FlaskClient, aoi_data: Dict[str, Any], voi_data: Dic
111114 assert response_data ["object_type" ] == "mesh"
112115 assert response_data ["geode_object" ] == "EdgedCurve3D"
113116
117+
114118def test_create_point_with_invalid_data (client : FlaskClient ) -> None :
115119 """Test the point creation endpoint with invalid data."""
116120 route : str = "/opengeodeweb_back/create/create_point"
@@ -167,7 +171,7 @@ def test_create_voi_with_invalid_data(
167171 assert aoi_response .status_code == 200
168172 aoi_id = aoi_response .json ["id" ]
169173
170- route = "/opengeodeweb_back/create/create_aoi"
174+ route = "/opengeodeweb_back/create/create_aoi"
171175
172176 invalid_data = {** voi_data , "aoi_id" : aoi_id , "z_min" : "not_a_number" }
173177 response = client .post (route , json = invalid_data )
@@ -179,4 +183,4 @@ def test_create_voi_with_invalid_data(
179183
180184 invalid_data = {** voi_data , "aoi_id" : 12345 }
181185 response = client .post (route , json = invalid_data )
182- assert response .status_code == 400
186+ assert response .status_code == 400
0 commit comments