def get_event_information_no_fields(): """ returns an DescriptionEvent with no features """ return DescriptionEvent.from_es( Event({ }), lang='en' )
def get_event_day_missing_fields(): """ returns an OpeningDayEvent with date start and date end """ return OpeningDayEvent.from_es( Event({ "date_start": "2019-03-23T00:00:00.000Z", "date_end": "2019-05-25T00:00:00.000Z", }), lang="en", )
def get_event_information_missing_fields(): """Returns an DescriptionEvent with feature free_text missing""" return DescriptionEvent.from_es( Event( { "type": "event_description", "description": "15h-16h [LECTURES D'ALBUMS] Pour les petits (3-6 ans). Accès libre et gratuit.", "pricing_info": "Gratuit", } ), lang="en", )
def get_event_information_complete_fields(): """ returns an DescriptionEvent with all features (type, description, free_text, pricing_info) """ return DescriptionEvent.from_es( Event({ "type": "event_description", "description": "15h-16h [LECTURES D'ALBUMS] Pour les petits (3-6 ans). Accès libre et gratuit.", "free_text": "Lectures d'albums pour les plus petits (3-6 ans). À partir de 15h. Accès libre et gratuit \n\n**Batiment**: Niveau 0-Bibliothèque jeunesse \n\n**Thèmes**: Sciences et société \n\n**Activités**: Animation", "pricing_info": "Gratuit", "tags": "concert;jazz" }), lang='en' )
def get_event_day_complete_fields_with_one_timetable(): """ returns an OpeningDayEvent with all features and simple timetable """ return OpeningDayEvent.from_es( Event({ "date_start": "2019-03-23T00:00:00.000Z", "date_end": "2019-05-25T00:00:00.000Z", "space_time_info": "du samedi 23 mars au samedi 25 mai à Cité des Sciences et de l'Industrie", "timetable": "2019-03-23T15:00:00 2019-03-23T16:00:00", }), lang="en", )
def get_event_day_no_fields(): """ returns an OpeningDayEvent empty """ return OpeningDayEvent.from_es(Event({}), lang="en")