Skip to content

Commit

Permalink
(PC-33922)[API] feat:change some homepage_label_name
Browse files Browse the repository at this point in the history
  • Loading branch information
nmajorfrances-pass committed Jan 20, 2025
1 parent bb298ae commit 8752e36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/src/pcapi/core/categories/subcategories_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ class HomepageLabels(Enum):
PLATEFORME = "Plateforme"
RENCONTRES = "Rencontres"
SPECTACLES = "Spectacles"
STAGE_ATELIER = "Stage, atelier"
VISITES = "Visites"


Expand Down Expand Up @@ -1812,7 +1813,7 @@ def is_online_only(self) -> bool:
pro_label="Séance d'essai",
app_label="Séance d'essai",
search_group_name=SEARCH_GROUP_ARTS_LOISIRS_CREATIFS.id,
homepage_label_name=HomepageLabels.BEAUX_ARTS.name,
homepage_label_name=HomepageLabels.STAGE_ATELIER.name,
is_event=True,
conditional_fields={ExtraDataFieldEnum.SPEAKER.value: FieldCondition()},
can_expire=True,
Expand All @@ -1831,7 +1832,7 @@ def is_online_only(self) -> bool:
pro_label="Atelier, stage de pratique artistique",
app_label="Atelier, stage de pratique artistique",
search_group_name=SEARCH_GROUP_ARTS_LOISIRS_CREATIFS.id,
homepage_label_name=HomepageLabels.BEAUX_ARTS.name,
homepage_label_name=HomepageLabels.STAGE_ATELIER.name,
is_event=True,
conditional_fields={ExtraDataFieldEnum.SPEAKER.value: FieldCondition()},
can_expire=False,
Expand Down Expand Up @@ -1868,7 +1869,7 @@ def is_online_only(self) -> bool:
pro_label="Pratique artistique - vente à distance",
app_label="Pratique artistique - vente à distance",
search_group_name=SEARCH_GROUP_ARTS_LOISIRS_CREATIFS.id,
homepage_label_name=HomepageLabels.BEAUX_ARTS.name,
homepage_label_name=HomepageLabels.COURS.name,
is_event=False,
conditional_fields={ExtraDataFieldEnum.SPEAKER.value: FieldCondition()},
can_expire=False,
Expand Down
1 change: 1 addition & 0 deletions api/tests/routes/native/openapi_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2872,6 +2872,7 @@ def test_public_api(client):
"PLATEFORME",
"RENCONTRES",
"SPECTACLES",
"STAGE_ATELIER",
"VISITES",
],
"title": "(HomepageLabelNameEnumv2",
Expand Down

0 comments on commit 8752e36

Please sign in to comment.