Skip to content

Commit

Permalink
Add fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Nov 10, 2023
1 parent a00fdc0 commit 0033f96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apptax/tests/test_taxref.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from flask import url_for
from schema import Schema, Optional, Or

from .fixtures import attribut_example, noms_example


@pytest.mark.usefixtures("client_class", "temporary_transaction")
class TestAPITaxref:
Expand Down Expand Up @@ -146,7 +148,7 @@ def test_getTaxrefList_routes_limit_fields(self):
if data:
assert current_schema.is_valid(data["items"])

def test_getTaxrefList_routes_limit_filter_id_liste(self):
def test_getTaxrefList_routes_limit_filter_id_liste(self, noms_example):
query_string = {"id_liste": 100, "fields": "cd_nom"}
response = self.client.get(url_for("taxref.getTaxrefList"), query_string=query_string)
current_schema = Schema([{"cd_nom": int}])
Expand Down

0 comments on commit 0033f96

Please sign in to comment.