mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-02 04:39:25 -04:00
Merge pull request #3868 from alphagov/add-another-test-area
Add another area to the library of test polygons
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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',
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user