Bump utils to 42.0.0

Requires unit test updating as we now expect broadcast event areas to
be a dict containing a list of areas and simple polygons.
This commit is contained in:
David McDonald
2020-09-14 15:21:55 +01:00
parent d352c99142
commit 5b2dee5ddb
6 changed files with 19 additions and 12 deletions

View File

@@ -1040,7 +1040,9 @@ def create_broadcast_event(
sent_at=sent_at or datetime.utcnow(),
message_type=message_type,
transmitted_content=transmitted_content or {'body': 'this is an emergency broadcast message'},
transmitted_areas=transmitted_areas or ['london'],
transmitted_areas=transmitted_areas or {
'areas': ['london'], 'simple_polygons': [[[50.12, 1.2], [50.13, 1.2], [50.14, 1.21]]]
},
transmitted_sender=transmitted_sender or 'www.notifications.service.gov.uk',
transmitted_starts_at=transmitted_starts_at,
transmitted_finishes_at=transmitted_finishes_at or datetime.utcnow(),