Skip to content

Commit

Permalink
test: ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Feb 7, 2025
1 parent da3e764 commit 0fbf2b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apptax/tests/test_taxref.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ class TestAPITaxref:
}
)

schema_taxref_detail_linnaean_parents = Schema(
{
"cd_nom": int,
"attributs": [Or(None, dict)],
"listes": Or(None, [int]),
"medias": [dict],
"synonymes": [{"cd_nom": int}],
"linnaean_parents": [{"cd_ref": int, "lb_nom": str, "id_rang": str}],
}
)

schema_taxref_detail_bib_attributs = Schema(
{
"cd_nom": int,
Expand Down Expand Up @@ -241,6 +252,7 @@ def test_taxrefDetail_linnaen_parents(self):
url_for("taxref.get_taxref_detail", id=67111, linnaean_parents=True)
)
assert response.status_code == 200
assert self.schema_taxref_detail_linnaean_parents.is_valid(response.json)
assert response.json["linnaean_parents"] == [
{"cd_ref": 183716, "id_rang": "KD", "lb_nom": "Animalia"},
{"cd_ref": 185694, "id_rang": "PH", "lb_nom": "Chordata"},
Expand Down

0 comments on commit 0fbf2b6

Please sign in to comment.