diff --git a/app/broadcast_areas/repo.py b/app/broadcast_areas/repo.py index c6cb275c8..6a328e4b8 100644 --- a/app/broadcast_areas/repo.py +++ b/app/broadcast_areas/repo.py @@ -120,6 +120,7 @@ class BroadcastAreasRepository(object): return sorted(libraries) def get_library_description(self, library_id): + # TODO: this count is wrong, and we shouldn't be building up user strings in sql. Replace this with python code. q = """ WITH areas AS ( diff --git a/tests/app/broadcast_areas/test_broadcast_area.py b/tests/app/broadcast_areas/test_broadcast_area.py index 5a10fe338..01dfd2dd7 100644 --- a/tests/app/broadcast_areas/test_broadcast_area.py +++ b/tests/app/broadcast_areas/test_broadcast_area.py @@ -41,7 +41,7 @@ def test_examples(): assert countries == 'England, Northern Ireland, Scotland, and Wales' wards = broadcast_area_libraries.get('wd20-lad20-ctyua19').get_examples() - assert wards == 'Aberdeen City, Aberdeenshire, Adur, and 375 more…' + assert wards == 'Aberdeen City, Aberdeenshire, Angus, and 213 more…' @pytest.mark.parametrize('id', ( diff --git a/tests/app/main/views/test_broadcast.py b/tests/app/main/views/test_broadcast.py index 088ff76b7..565b422c4 100644 --- a/tests/app/main/views/test_broadcast.py +++ b/tests/app/main/views/test_broadcast.py @@ -434,7 +434,7 @@ def test_choose_broadcast_area_page_for_area_with_sub_areas( ) for choice in page.select('.file-list-item') ] - assert len(choices) == 379 + assert len(choices) == 394 assert choices[:2] == [ ( partial_url_for(area_slug='lad20-S12000033'),