def valid_application_event_data(
    reservation_unit,
    ten_to_15_age_group,
    hobbyist_ability_group,
    application,
    purpose,
    valid_application_event_schedule_data,
    valid_event_reservation_unit_data,
):
    """ Valid JSON data for creating a new ApplicationEvent """
    return {
        "name": "Football event",
        "num_persons": 12,
        "age_group_id": ten_to_15_age_group.id,
        "ability_group_id": hobbyist_ability_group.id,
        "min_duration": "01:15:00",
        "max_duration": "02:00:00",
        "application_id": application.id,
        "events_per_week": 1,
        "biweekly": False,
        "begin": "2020-01-01",
        "end": "2021-01-01",
        "purpose_id": purpose.id,
        "application_event_schedules": [valid_application_event_schedule_data],
        "event_reservation_units": [valid_event_reservation_unit_data],
        "status": "created",
    }