From b7e6b94e8746431868590c22c930c78550dd34d2 Mon Sep 17 00:00:00 2001 From: Toby Lorne Date: Tue, 4 Aug 2020 09:35:01 +0100 Subject: [PATCH] broadcast-areas: and in get_examples Signed-off-by: Toby Lorne --- notifications_utils/broadcast_areas/repo.py | 2 +- tests/test_broadcast_area.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notifications_utils/broadcast_areas/repo.py b/notifications_utils/broadcast_areas/repo.py index 6d493f280..8ef59344f 100644 --- a/notifications_utils/broadcast_areas/repo.py +++ b/notifications_utils/broadcast_areas/repo.py @@ -120,7 +120,7 @@ class BroadcastAreasRepository(object): (SELECT * FROM description_areas_joined) ELSE (SELECT * FROM description_areas_joined) - || ", " + || ", and " || (SELECT * FROM subset_area_count) || " more…" END diff --git a/tests/test_broadcast_area.py b/tests/test_broadcast_area.py index f2d4ca234..17b9e4621 100644 --- a/tests/test_broadcast_area.py +++ b/tests/test_broadcast_area.py @@ -53,7 +53,7 @@ def test_examples(): broadcast_area_libraries.get('countries').get_examples(), ) assert re.match( - "^([^,]*, ){4}5 more…$", + "^([^,]*, ){4}and 5 more…$", broadcast_area_libraries.get('regions-of-england').get_examples() )