Skip to content

Commit

Permalink
Taxref schema
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Nov 10, 2023
1 parent 3dbbdf6 commit 37fe0d1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apptax/tests/test_taxref.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ class TestAPITaxref:
[
{
"cd_nom": int,
"id_statut": str,
"id_habitat": int,
"id_statut": Or(None, str),
"id_habitat": Or(None, int),
"id_rang": str,
"phylum": str,
"phylum": Or(None, str),
"classe": Or(None, str),
"regne": str,
"ordre": str,
"famille": str,
"regne": Or(None, str),
"ordre": Or(None, str),
"famille": Or(None, str),
"sous_famille": Or(None, str),
"tribu": Or(None, str),
"cd_taxsup": Or(None, int),
Expand All @@ -49,7 +49,7 @@ class TestAPITaxref:
"nom_vern_eng": Or(None, str),
"group1_inpn": str,
"group2_inpn": str,
"group3_inpn": str,
"group3_inpn": Or(None, str),
"url": Or(None, str),
"lists": [int],
}
Expand Down Expand Up @@ -128,7 +128,7 @@ def test_get_allnamebyListe_routes_without_list_filter_group3(self):
assert self.schema_allnamebyListe.is_valid(data)

def test_get_names_routes(self):
query_string = {"limit": 10}
query_string = {"limit": 100}
response = self.client.get(url_for("taxref.get_names"), query_string=query_string)
assert response.status_code == 200
data = response.json
Expand Down

0 comments on commit 37fe0d1

Please sign in to comment.