Skip to content

Commit

Permalink
correction test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrieuclp committed Jul 30, 2024
1 parent 392b23e commit b8e1d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/geonature/tests/test_synthese.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,13 +1374,13 @@ def test_observation_count_per_column(self, users, synthese_data):
assert item["count"] >= test_cd_nom["count"]

def test_get_autocomplete_taxons_synthese(self, synthese_data, users):
seach_name = synthese_data["obs1"].nom_cite
taxon = db.session.execute(select(Taxref).filter_by(cd_nom=synthese_data["obs1"].cd_nom)).scalar_one()

set_logged_user(self.client, users["self_user"])

response = self.client.get(
url_for("gn_synthese.get_autocomplete_taxons_synthese"),
query_string={"search_name": seach_name},
query_string={"search_name": taxon.lb_nom},
)

assert response.status_code == 200
Expand Down

0 comments on commit b8e1d8b

Please sign in to comment.