Skip to content

Commit

Permalink
(PC-33751)[API] fix: « Partenaire Culturel » -> « Structure » in reim…
Browse files Browse the repository at this point in the history
…bursement CSV
  • Loading branch information
jclery-pass committed Jan 10, 2025
1 parent 912c7f4 commit 9ec6782
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ def get_csv_headers(cls) -> list[str]:
return (
cls.CSV_HEADER[0:6]
+ [
"SIRET du partenaire culturel",
"Raison sociale du partenaire culturel",
"SIRET de la structure",
"Raison sociale de la structure",
"Nom de l'offre",
"Adresse de l'offre",
]
Expand Down
13 changes: 6 additions & 7 deletions api/tests/routes/pro/get_reimbursements_csv_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def test_with_reimbursement_period_filter_with_pricings(client, cutoff, fortnigh
reader = csv.DictReader(StringIO(response.data.decode("utf-8-sig")), delimiter=";")
assert reader.fieldnames[:6] == ReimbursementDetails.CSV_HEADER[:6]
assert reader.fieldnames[6:10] == [
"SIRET du partenaire culturel",
"Raison sociale du partenaire culturel",
"SIRET de la structure",
"Raison sociale de la structure",
"Nom de l'offre",
"Adresse de l'offre",
]
Expand All @@ -356,11 +356,10 @@ def test_with_reimbursement_period_filter_with_pricings(client, cutoff, fortnigh
assert row["N° du justificatif"] == invoice.reference
assert row["N° de virement"] == batch.label
assert row["Intitulé du compte bancaire"] == bank_account.label
assert row["SIRET du partenaire culturel"] == venue.siret
assert row["IBAN"] == bank_account.iban
assert row["Raison sociale du partenaire culturel"] == venue.name
assert row["Raison sociale de la structure"] == venue.name
assert row["Adresse de l'offre"] == f"{venue.street} {venue.postalCode} {venue.city}"
assert row["SIRET du partenaire culturel"] == venue.siret
assert row["SIRET de la structure"] == venue.siret
assert row["Nom de l'offre"] == offer.name
assert row["N° de réservation (offre collective)"] == ""
assert row["Nom (offre collective)"] == ""
Expand Down Expand Up @@ -670,8 +669,8 @@ def test_with_offer_address_and_venue_address(client, offer_has_oa, len_offerer_
"N° de virement",
"Intitulé du compte bancaire",
"IBAN",
"SIRET du partenaire culturel",
"Raison sociale du partenaire culturel",
"SIRET de la structure",
"Raison sociale de la structure",
"Nom de l'offre",
"Adresse de l'offre",
"N° de réservation (offre collective)",
Expand Down

0 comments on commit 9ec6782

Please sign in to comment.