diff --git a/test_cases/deduplication.json b/test_cases/deduplication.json index bc56adf..ce9b487 100644 --- a/test_cases/deduplication.json +++ b/test_cases/deduplication.json @@ -44,8 +44,8 @@ "name": "Pennsylvania", "layer": "region" }, { - "name": "Pennsylvania Township", - "layer": "localadmin", + "name": "Pennsylvania", + "layer": "locality", "region": "Illinois" }] } @@ -103,6 +103,65 @@ } ] } + }, + { + "id": 5, + "status": "fail", + "user": "orangejulius", + "endpoint": "autocomplete", + "description": "Geonames 'New York City' record should not appear", + "in": { + "text": "New York" + }, + "expected": { + "properties": [ + { + "name": "New York", + "layer": "locality" + } + ] + }, + "unexpected": { + "properties": [ + { + "name": "New York City" + } + ] + } + }, + { + "id": 6, + "status": "fail", + "user": "orangejulius", + "endpoint": "autocomplete", + "description": "Multiple Berlin records should not appear", + "in": { + "text": "Berlin" + }, + "expected": { + "properties": [ + { + "name": "Berlin", + "layer": "locality" + } + ] + }, + "unexpected": { + "properties": [ + { + "name": "Berlin", + "gid": "geonames:locality:6547383" + }, + { + "name": "Berlin", + "layer": "region" + }, + { + "name": "Berlin", + "layer": "localadmin" + } + ] + } } ] }