broadcast-areas: and in get_examples

Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
Toby Lorne
2020-08-04 09:35:01 +01:00
parent b98cf6616c
commit b7e6b94e87
2 changed files with 2 additions and 2 deletions

View File

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

View File

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