iCal for organization #393

This commit is contained in:
Daniel Grams 2023-03-31 00:00:35 +02:00
parent bfd0a8c24c
commit ab8f85510d

View File

@ -276,11 +276,12 @@ def test_create_ical_events_for_event(client, app, db, utils, seeder):
event_id = seeder.create_event(admin_unit_id)
with app.app_context():
from project.models import Event, Location
from project.models import Event, EventStatus, Location
from project.services.event import create_ical_events_for_event
event = Event.query.get(event_id)
event.description = "This is a fantastic event. Watch out!"
event.status = EventStatus.cancelled
place = event.event_place
place.name = "MachMitHaus Goslar"