diff --git a/backend/geonature/tests/test_synthese.py b/backend/geonature/tests/test_synthese.py index 3ff15da3e5..cb4fd3e7c6 100644 --- a/backend/geonature/tests/test_synthese.py +++ b/backend/geonature/tests/test_synthese.py @@ -1144,28 +1144,28 @@ def test_taxon_stats(self, synthese_data, users): # Missing area_type parameter response = self.client.get( - url_for("gn_synthese.taxon_stats", cd_nom=CD_REF_VALID), + url_for("gn_synthese.taxon_stats", cd_ref=CD_REF_VALID), ) assert response.status_code == 400 assert response.json["description"] == "Missing area_type parameter" # Invalid area_type parameter response = self.client.get( - url_for("gn_synthese.taxon_stats", cd_nom=CD_REF_VALID, area_type=AREA_TYPE_INVALID), + url_for("gn_synthese.taxon_stats", cd_ref=CD_REF_VALID, area_type=AREA_TYPE_INVALID), ) assert response.status_code == 400 assert response.json["description"] == "Invalid area_type parameter" # Invalid cd_ref parameter response = self.client.get( - url_for("gn_synthese.taxon_stats", cd_nom=CD_REF_INVALID, area_type=AREA_TYPE_VALID), + url_for("gn_synthese.taxon_stats", cd_ref=CD_REF_INVALID, area_type=AREA_TYPE_VALID), ) assert response.status_code == 200 assert response.get_json() == CD_REF_INVALID_STATS # Invalid cd_ref parameter response = self.client.get( - url_for("gn_synthese.taxon_stats", cd_nom=CD_REF_VALID, area_type=AREA_TYPE_VALID), + url_for("gn_synthese.taxon_stats", cd_ref=CD_REF_VALID, area_type=AREA_TYPE_VALID), ) response_json = response.get_json() assert response.status_code == 200