Skip to content

Commit

Permalink
[test] Update taxref_schema add cd_ba + nomenclatural_comment
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Jan 16, 2025
1 parent 934e03f commit f3174dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apptax/tests/test_taxref.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ class TestAPITaxref:
"cd_taxsup": Or(None, int),
"cd_sup": Or(None, int),
"cd_ref": int,
"cd_ba": Or(None, int),
"lb_nom": str,
"lb_auteur": str,
"nom_complet": str,
"nom_complet_html": str,
"nom_vern": Or(None, str),
"nom_valide": str,
"nom_vern_eng": Or(None, str),
"nomenclatural_comment": Or(None, str),
"group1_inpn": str,
"group2_inpn": str,
"group3_inpn": Or(None, str),
Expand All @@ -76,13 +78,15 @@ class TestAPITaxref:
"cd_taxsup": Or(None, int),
"cd_sup": Or(None, int),
"cd_ref": int,
"cd_ba": Or(None, int),
"lb_nom": str,
"lb_auteur": str,
"nom_complet": str,
"nom_complet_html": str,
"nom_vern": Or(None, str),
"nom_valide": str,
"nom_vern_eng": Or(None, str),
"nomenclatural_comment": Or(None, str),
"group1_inpn": str,
"group2_inpn": str,
"group3_inpn": Or(None, str),
Expand Down Expand Up @@ -268,7 +272,7 @@ def test_taxrefversion_routes(self):
response = self.client.get(url_for("taxref.getTaxrefVersion"))
assert response.status_code == 200
assert (
json.loads(response.data)["version"] == 17
json.loads(response.data)["version"] == 18
) # FIXME: Comment faire si quelqu'un a besoin de taxref dans une différente version...

def test_get_groupe3_inpn(self):
Expand Down
2 changes: 1 addition & 1 deletion apptax/tests/test_taxref_last_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def test_enable_bdc_statut(self):

def test_taxref_version(self):
taxref_version = TMetaTaxref.query.order_by(TMetaTaxref.update_date.desc()).scalar()
assert taxref_version.version == 17
assert taxref_version.version == 18

0 comments on commit f3174dd

Please sign in to comment.