mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
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]
|
||||
|
||||
@@ -886,6 +886,7 @@ def test_preview_broadcast_areas_page_with_custom_polygons(
|
||||
@pytest.mark.parametrize('areas, expected_list', (
|
||||
([], [
|
||||
'Countries',
|
||||
'Demo areas',
|
||||
'Local authorities',
|
||||
'Test areas',
|
||||
]),
|
||||
@@ -895,6 +896,7 @@ def test_preview_broadcast_areas_page_with_custom_polygons(
|
||||
'ctry19-S92000003',
|
||||
], [
|
||||
'Countries',
|
||||
'Demo areas',
|
||||
'Local authorities',
|
||||
'Test areas',
|
||||
]),
|
||||
@@ -905,6 +907,7 @@ def test_preview_broadcast_areas_page_with_custom_polygons(
|
||||
'lad20-E06000052', # Cornwall, a unitary authority
|
||||
], [
|
||||
'Countries',
|
||||
'Demo areas',
|
||||
'Local authorities',
|
||||
'Test areas',
|
||||
]),
|
||||
@@ -922,6 +925,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