Merge pull request #3569 from alphagov/remove-regions

Remove ‘Regions of England’ library
This commit is contained in:
Chris Hill-Scott
2020-08-13 11:19:42 +01:00
committed by GitHub
5 changed files with 1 additions and 13 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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:

View File

@@ -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])

View File

@@ -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) == (