Merge pull request #3868 from alphagov/add-another-test-area

Add another area to the library of test polygons
This commit is contained in:
Chris Hill-Scott
2021-05-11 15:47:01 +01:00
committed by GitHub
5 changed files with 72 additions and 1 deletions

View File

@@ -27,6 +27,11 @@ def test_loads_libraries():
'Countries',
False,
),
(
'demo',
'Demo areas',
False,
),
(
'wd20-lad20-ctyua19',
'Local authorities',
@@ -159,9 +164,10 @@ def test_repository_has_all_libraries():
repo = BroadcastAreasRepository()
libraries = repo.get_libraries()
assert len(libraries) == 3
assert len(libraries) == 4
assert [
('Countries', 'country'),
('Demo areas', 'demo area'),
('Test areas', 'test area'),
('Local authorities', 'local authority'),
] == [(name, name_singular) for _, name, name_singular, _is_group in libraries]

View File

@@ -900,6 +900,7 @@ def test_preview_broadcast_areas_page_with_custom_polygons(
@pytest.mark.parametrize('areas, expected_list', (
([], [
'Countries',
'Demo areas',
'Local authorities',
'Test areas',
]),
@@ -909,6 +910,7 @@ def test_preview_broadcast_areas_page_with_custom_polygons(
'ctry19-S92000003',
], [
'Countries',
'Demo areas',
'Local authorities',
'Test areas',
]),
@@ -919,6 +921,7 @@ def test_preview_broadcast_areas_page_with_custom_polygons(
'lad20-E06000052', # Cornwall, a unitary authority
], [
'Countries',
'Demo areas',
'Local authorities',
'Test areas',
]),
@@ -936,6 +939,7 @@ def test_preview_broadcast_areas_page_with_custom_polygons(
'Shetland Islands',
# ---
'Countries',
'Demo areas',
'Local authorities',
'Test areas',
]),