@@ -29,15 +29,16 @@ def aoi_data() -> Dict[str, Any]:
2929 "z" : 0.0 ,
3030 }
3131
32+
3233@pytest .fixture
3334def voi_data () -> Dict [str , Any ]:
3435 """Fixture for Volume of Interest (VOI) test data."""
3536 return {
3637 "name" : "test_voi" ,
37- "aoi_id" : str (uuid .uuid4 ()),
38+ "aoi_id" : str (uuid .uuid4 ()),
3839 "z_min" : - 50.0 ,
3940 "z_max" : 100.0 ,
40- "id" : str (uuid .uuid4 ()),
41+ "id" : str (uuid .uuid4 ()),
4142 }
4243
4344
@@ -113,9 +114,8 @@ def test_create_voi(client: FlaskClient, voi_data: Dict[str, Any]) -> None:
113114
114115 voi_data_required_only = voi_data .copy ()
115116 del voi_data_required_only ["id" ]
116-
117- test_utils .test_route_wrong_params (client , route , lambda : voi_data_required_only .copy ()) # type: ignore
118117
118+ test_utils .test_route_wrong_params (client , route , lambda : voi_data_required_only .copy ()) # type: ignore
119119
120120
121121def test_create_point_with_invalid_data (client : FlaskClient ) -> None :
@@ -183,7 +183,7 @@ def test_create_voi_with_invalid_data(
183183 invalid_data = {** voi_data , "z_max" : "not_a_number" }
184184 response = client .post (route , json = invalid_data )
185185 assert response .status_code == 400
186-
186+
187187 # Test with invalid aoi_id format (e.g., not a string/uuid)
188188 invalid_data = {** voi_data , "aoi_id" : 12345 }
189189 response = client .post (route , json = invalid_data )
0 commit comments