diff --git a/backend/geonature/tests/test_synthese.py b/backend/geonature/tests/test_synthese.py index f39de7dc0c..fbf5dc6bbe 100644 --- a/backend/geonature/tests/test_synthese.py +++ b/backend/geonature/tests/test_synthese.py @@ -1406,6 +1406,8 @@ def test_get_observations_for_web_blurring_grouped_geom( ) json_resp = response.json + + # Retrieve only sensitive synthese ids sensitive_synthese_ids = [ synthese.id_synthese for synthese in ( @@ -1414,6 +1416,8 @@ def test_get_observations_for_web_blurring_grouped_geom( ) ] + # If an observation is blurred and the AREA_AGGREGATION_TYPE is smaller in + # size than the blurred observation then the observation should not appear assert all( feature["geometry"] is None for feature in json_resp["features"]