Skip to content

Commit

Permalink
Merge pull request #438 from pelias/placeholder-new-data
Browse files Browse the repository at this point in the history
Adjust tests for mostly Placeholder changes
  • Loading branch information
orangejulius authored Sep 29, 2017
2 parents 6439354 + c0bb9d7 commit b9b2c7e
Show file tree
Hide file tree
Showing 15 changed files with 148 additions and 151 deletions.
2 changes: 1 addition & 1 deletion test_cases/admin_lookup.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"expected": {
"properties": [
{
"county": "Voelkermarkt"
"county": "Völkermarkt"
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion test_cases/autocomplete_admin_areas.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@
"priorityThresh": 1,
"properties": [
{
"label": "Malmö, Sweden"
"name": "Malmo",
"country": "Sweden"
}
]
}
Expand Down
12 changes: 6 additions & 6 deletions test_cases/encoding.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
"description": "make sure that results return the appropriate accents on results",
"notes": "https://github.com/pelias/api/issues/731",
"in": {
"lang": "et",
"text": "pärnu, estonia"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"name": "Parnu",
"region": "Pärnumaa",
"locality": "Parnu",
"label": "Parnu, Estonia",
"country": "Estonia"
"name": "Pärnu maakond",
"region": "Pärnu maakond",
"country": "Eesti"
}
]
}
Expand All @@ -61,7 +61,7 @@
"properties": [
{
"name": "Chambéry",
"macroregion": "Rhône-Alpes",
"macroregion": "Auvergne-Rhone-Alpes",
"locality": "Chambéry",
"label": "Chambéry, France",
"country": "France"
Expand Down
3 changes: 2 additions & 1 deletion test_cases/international.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
},
{
"id": 14,
"status": "fail",
"status": "pass",
"user": "lily",
"description": [
"Street exists in OSM data but returns various addresses instead of street centroid"
Expand All @@ -295,6 +295,7 @@
"properties": [
{
"name": "Paseo de la Reforma",
"layer": "street",
"locality": "Mexico City",
"country_a": "MEX"
}
Expand Down
18 changes: 12 additions & 6 deletions test_cases/labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
"expected": {
"properties": [
{
"label": "Bayamón, PRI"
"label": "Bayamón, Puerto Rico"
}
]
}
Expand All @@ -266,16 +266,19 @@
"expected": {
"properties": [
{
"label": "Aasu, ASM"
"label": "Aasu, American Samoa"
}
]
}
},
{
"id": 19,
"status": "pass",
"status": "fail",
"description": "locality in non-US dependency should still include country",
"issue": "https://github.com/pelias/labels/issues/5",
"issue": [
"https://github.com/pelias/labels/issues/5",
"https://github.com/pelias/placeholder/issues/54"
],
"user": "trescube",
"in": {
"text": "George Hill, Anguilla",
Expand All @@ -293,9 +296,12 @@
},
{
"id": 20,
"status": "pass",
"status": "fail",
"description": "locality in non-US dependency should still include country",
"issue": "https://github.com/pelias/labels/issues/5",
"issue": [
"https://github.com/pelias/labels/issues/5",
"https://github.com/pelias/placeholder/issues/54"
],
"user": "trescube",
"in": {
"text": "Tórshavn faroe islands",
Expand Down
33 changes: 25 additions & 8 deletions test_cases/placeholder_altnames.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
{
"id": 3,
"status": "fail",
"status": "pass",
"user": "lily",
"description": [
"address in French with admin info in Japanese",
Expand Down Expand Up @@ -132,7 +132,7 @@
},
{
"id": 6,
"status": "fail",
"status": "pass",
"user": "lily",
"endpoint": "autocomplete",
"description": [
Expand Down Expand Up @@ -252,7 +252,7 @@
},
{
"id": 11,
"status": "fail",
"status": "pass",
"user": "lily",
"description": [
"address in Estonian, locality (Tallinn) in Finnish, region in English"
Expand Down Expand Up @@ -313,7 +313,7 @@
"properties": [
{
"name": "Беверли Хилс",
"region": "Texas",
"region": "Тексас",
"country": "Сједињене Америчке Државе"
}
]
Expand All @@ -325,7 +325,6 @@
"user": "lily",
"description": [
"search with focus point parameter",
"no RU translation for region",
"lang: russian"
],
"in": {
Expand All @@ -338,7 +337,7 @@
"properties": [
{
"name": "Спрингфилд",
"region": "Ohio",
"region": "Огайо",
"country": "Соединённые Штаты Америки"
}
]
Expand Down Expand Up @@ -430,7 +429,7 @@
"properties": [
{
"name": "Дамаскъс",
"region": "Oregon",
"region": "Орегон",
"country": "Съединени американски щати"
}
]
Expand Down Expand Up @@ -594,7 +593,25 @@
}
]
}
},
{
"id": 26,
"status": "pass",
"user": "julian",
"description": "from mapillary home page",
"in": {
"text": "malmo",
"lang": "sv"
},
"expected": {
"priorityThresh": 1,
"properties": [
{
"name": "Malmö",
"country": "Sverige"
}
]
}
}

]
}
2 changes: 1 addition & 1 deletion test_cases/placeholder_general.json
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@
},
{
"id": 28,
"status": "fail",
"status": "pass",
"endpoint": "search",
"description": "Dundee has 0 population: https://github.com/pelias/pelias/issues/526",
"priorityThresh": 10,
Expand Down
31 changes: 26 additions & 5 deletions test_cases/placeholder_sorting.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
"properties": [
{
"gid": "whosonfirst:macroregion:404227535",
"name": "Sardegna"
"name": "Sardinia"
}
]
}
Expand All @@ -322,7 +322,7 @@
"properties": [
{
"gid": "whosonfirst:macroregion:404227361",
"name": "Andalucía"
"name": "Andalusia"
}
]
}
Expand Down Expand Up @@ -431,9 +431,10 @@
},
{
"id": 701,
"status": "pass",
"status": "fail",
"endpoint": "search",
"description": "borough should rank higher than county",
"issue": "https://github.com/pelias/placeholder/issues/55",
"in": {
"text": "Queens"
},
Expand Down Expand Up @@ -552,9 +553,9 @@
},
{
"id": 1101,
"status": "pass",
"status": "fail",
"endpoint": "search",
"description": "county",
"description": "county. failed because of space temporarily at the end of the name",
"in": {
"text": "Nordsachsen"
},
Expand Down Expand Up @@ -743,6 +744,26 @@
}
]
}
},
{
"id": 1600,
"status": "fail",
"endpoint": "search",
"description": "county should be after locality generally",
"issue": [
"https://github.com/pelias/placeholder/issues/55"
],
"in": {
"text": "pärnu, estonia"
},
"expected": {
"properties": [
{
"name": "Parnu",
"layer": "locality"
}
]
}
}
]
}
9 changes: 5 additions & 4 deletions test_cases/search_city_country.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@
},
{
"id": 10,
"status": "fail",
"status": "pass",
"user": "trescube",
"type": "dev",
"notes": "WOF currently lacks 'Cairo' as an altname for the city: https://whosonfirst.mapzen.com/spelunker/id/421174399",
"notes": "WOF previously lacked 'Cairo' as an altname for the city: https://whosonfirst.mapzen.com/spelunker/id/421174399",
"in": {
"text": "Cairo, EGY"
},
Expand Down Expand Up @@ -250,7 +250,7 @@
{
"layer": "locality",
"locality": "Prague",
"country": "Czech Republic",
"country": "Czechia",
"country_a": "CZE"
}
]
Expand Down Expand Up @@ -494,10 +494,11 @@
},
{
"id": 26,
"status": "pass",
"status": "fail",
"user": "trescube",
"type": "dev",
"notes": "New Caledonia is a dependency",
"issue": "https://github.com/pelias/wof-admin-lookup/issues/156",
"in": {
"text": "Bourail, new caledonia"
},
Expand Down
Loading

0 comments on commit b9b2c7e

Please sign in to comment.