mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Exclude grouped areas from examples
The given examples should match the choices offered when you visit the next page. The choices offered on the next page are either the areas (when a library is not grouped) or the groups (when a library is grouped). This commit makes the examples match the choices by excluding sub-areas, ie those that have a grouping ID.
This commit is contained in:
@@ -61,7 +61,7 @@ def test_examples():
|
||||
wards = broadcast_area_libraries.get(
|
||||
'electoral-wards-of-the-united-kingdom',
|
||||
).get_examples()
|
||||
assert wards == 'Abbey, Alibon, Becontree, Chadwell Heath, and 8970 more…'
|
||||
assert wards == 'Hartlepool, Middlesbrough, Redcar and Cleveland, Stockton-on-Tees, and 375 more…'
|
||||
|
||||
|
||||
@pytest.mark.parametrize('id', (
|
||||
|
||||
Reference in New Issue
Block a user