Skip to content

Commit

Permalink
chore(api): add comment to explain test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Vergez committed Nov 6, 2023
1 parent ea3f7cf commit 760d43b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/geonature/tests/test_synthese.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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"]
Expand Down

0 comments on commit 760d43b

Please sign in to comment.