mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 19:59:18 -04:00
Merge pull request #3569 from alphagov/remove-regions
Remove ‘Regions of England’ library
This commit is contained in:
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -71,7 +71,6 @@ repo.create_tables()
|
||||
|
||||
simple_datasets = [
|
||||
("Countries", "ctry19cd", "ctry19nm"),
|
||||
("Regions of England", "rgn18cd", "rgn18nm"),
|
||||
("Counties and Unitary Authorities in England and Wales", "ctyua16cd", "ctyua16nm"),
|
||||
]
|
||||
for dataset_name, id_field, name_field in simple_datasets:
|
||||
|
||||
@@ -25,11 +25,6 @@ def test_loads_libraries():
|
||||
'Electoral Wards of the United Kingdom',
|
||||
True,
|
||||
),
|
||||
(
|
||||
'regions-of-england',
|
||||
'Regions of England',
|
||||
False,
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@@ -50,9 +45,6 @@ def test_examples():
|
||||
countries = broadcast_area_libraries.get('countries').get_examples()
|
||||
assert countries == 'England, Northern Ireland, Scotland, and Wales'
|
||||
|
||||
regions = broadcast_area_libraries.get('regions-of-england').get_examples()
|
||||
assert regions == 'East Midlands, East of England, London, and 5 more…'
|
||||
|
||||
counties = broadcast_area_libraries.get(
|
||||
'counties-and-unitary-authorities-in-england-and-wales',
|
||||
).get_examples()
|
||||
@@ -187,10 +179,9 @@ def test_repository_has_all_libraries():
|
||||
repo = BroadcastAreasRepository()
|
||||
libraries = repo.get_libraries()
|
||||
|
||||
assert len(libraries) == 4
|
||||
assert len(libraries) == 3
|
||||
assert [
|
||||
'Counties and Unitary Authorities in England and Wales',
|
||||
'Countries',
|
||||
'Electoral Wards of the United Kingdom',
|
||||
'Regions of England',
|
||||
] == sorted([name for _, name, _is_group in libraries])
|
||||
|
||||
@@ -295,7 +295,6 @@ def test_choose_broadcast_library_page(
|
||||
'Counties and Unitary Authorities in England and Wales',
|
||||
'Countries',
|
||||
'Electoral Wards of the United Kingdom',
|
||||
'Regions of England',
|
||||
])
|
||||
|
||||
assert normalize_spaces(page.select('.file-list-hint-large')[1].text) == (
|
||||
|
||||
Reference in New Issue
Block a user