diff --git a/server/planning/events/events_tests.py b/server/planning/events/events_tests.py index a5d989741..6c3fd094b 100644 --- a/server/planning/events/events_tests.py +++ b/server/planning/events/events_tests.py @@ -657,7 +657,6 @@ def test_related_planning_item_fields_validation_on_post(self): "slugline": "slug", "agendas": [], "languages": ["en"], - "event_item": event_id[0], "coverages": [ { "coverage_id": "urn:newsmle264a179-5b1a-4b52-b73b-332660848cae", @@ -677,6 +676,9 @@ def test_related_planning_item_fields_validation_on_post(self): "firstcreated": datetime(2099, 11, 21, 12, 00, 00, tzinfo=pytz.UTC), } ], + "related_events": [ + PlanningRelatedEventLink(_id=event_id[0], link_type="primary"), + ], } planning_id = planning_service.post([planning]) self.app.data.insert(