Remove support for "areas_2" field

The Admin app was only using this temporarily and is now using the
"areas" field instead [1], so we can delete this one.

[1]: https://github.com/alphagov/notifications-admin/pull/4006
This commit is contained in:
Ben Thorner
2021-09-01 17:25:55 +01:00
parent 43ddfe0560
commit d50c563f08
5 changed files with 16 additions and 76 deletions

View File

@@ -87,10 +87,6 @@ def test_valid_post_cap_xml_broadcast_returns_201(
assert response_json['areas']['names'] == [
'River Steeping in Wainfleet All Saints'
]
# TEMPORARY: while we repurpose "areas"
assert response_json['areas_2']['names'] == [
'River Steeping in Wainfleet All Saints'
]
assert response_json['cancelled_at'] is None
assert response_json['cancelled_by_id'] is None
assert response_json['content'].startswith(
@@ -113,11 +109,6 @@ def test_valid_post_cap_xml_broadcast_returns_201(
assert response_json['areas']['simple_polygons'][0][0] == [53.10562, 0.244127]
assert response_json['areas']['simple_polygons'][0][-1] == [53.10562, 0.244127]
assert response_json['areas']['simple_polygons'][0][-1] == [53.10562, 0.244127]
assert len(response_json['areas_2']['simple_polygons']) == 1
assert len(response_json['areas_2']['simple_polygons'][0]) == 23
assert response_json['areas_2']['simple_polygons'][0][0] == [53.10562, 0.244127]
assert response_json['areas_2']['simple_polygons'][0][-1] == [53.10562, 0.244127]
assert response_json['areas_2']['simple_polygons'][0][-1] == [53.10562, 0.244127]
assert response_json['starts_at'] is None
assert response_json['status'] == 'pending-approval'