From 923427783c6832bb975b604ac463243d39fccf2d Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Mon, 6 Nov 2023 17:19:39 +0100 Subject: [PATCH] toulouse-maelis: rename activity type label (#83165) --- passerelle/contrib/toulouse_maelis/models.py | 2 +- tests/test_toulouse_maelis.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/passerelle/contrib/toulouse_maelis/models.py b/passerelle/contrib/toulouse_maelis/models.py index e458f4c3..b6665b2e 100644 --- a/passerelle/contrib/toulouse_maelis/models.py +++ b/passerelle/contrib/toulouse_maelis/models.py @@ -2747,7 +2747,7 @@ class ToulouseMaelis(BaseResource, HTTPResource): labels = { 'service': 'Service', 'nature': "Nature de l'activité", - 'type': "Type de l'activité", + 'type': 'Discipline', 'public': 'Public', 'day': 'Jours', 'place': 'Lieu', diff --git a/tests/test_toulouse_maelis.py b/tests/test_toulouse_maelis.py index 7cb747fe..56ee37cd 100644 --- a/tests/test_toulouse_maelis.py +++ b/tests/test_toulouse_maelis.py @@ -6398,7 +6398,7 @@ def test_read_activity_list(con, app, freezer): }, 'nature': {'text': "Nature de l'activité", 'data': {'4': 'ART PLASTIQUE'}, 'order': ['4']}, 'type': { - 'text': "Type de l'activité", + 'text': 'Discipline', 'data': {'activite-reguliere': 'ACTIVITE REGULIERE'}, 'order': ['activite-reguliere'], }, @@ -6431,7 +6431,7 @@ def test_read_activity_list(con, app, freezer): 'order': ['1', '4'], }, 'type': { - 'text': "Type de l'activité", + 'text': 'Discipline', 'data': { 'activite-reguliere': 'ACTIVITE REGULIERE', 'activites-aquatiques-activite-reguliere': 'Activités Aquatiques Activité Réguliére', @@ -6490,7 +6490,7 @@ def test_read_activity_list(con, app, freezer): 'all_criterias': { 'service': {'text': 'Service', 'data': {}, 'order': []}, 'nature': {'text': "Nature de l'activité", 'data': {}, 'order': []}, - 'type': {'text': "Type de l'activité", 'data': {}, 'order': []}, + 'type': {'text': 'Discipline', 'data': {}, 'order': []}, 'public': {'text': 'Public', 'data': {}, 'order': []}, 'day': {'text': 'Jours', 'data': {}, 'order': []}, 'place': {'text': 'Lieu', 'data': {}, 'order': []},