clients: cbc_proxy actions accepts areas param

related:
https://github.com/alphagov/notifications-broadcasts-infra/pull/23

Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
Toby Lorne
2020-10-23 16:44:11 +01:00
parent d9ceed55b5
commit aa002afd31
4 changed files with 72 additions and 6 deletions

View File

@@ -30,6 +30,10 @@ def test_send_broadcast_event_sends_data_correctly(mocker, sample_service):
identifier=str(event.id),
headline="GOV.UK Notify Broadcast",
description='this is an emergency broadcast message',
areas=[{
"description": "london",
"polygon": [[50.12, 1.2], [50.13, 1.2], [50.14, 1.21]],
}]
)
assert request_mock.call_count == 1
@@ -93,4 +97,12 @@ def test_send_broadcast_event_errors(mocker, sample_service):
identifier=str(event.id),
headline="GOV.UK Notify Broadcast",
description='this is an emergency broadcast message',
areas=[{
'description': 'london',
'polygon': [
[50.12, 1.2],
[50.13, 1.2],
[50.14, 1.21],
],
}],
)