mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-01 20:29:49 -04:00
broadcast-areas: and in get_examples
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user