Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust tests for mostly Placeholder changes #438

Merged
merged 13 commits into from
Sep 29, 2017
Merged

Conversation

orangejulius
Copy link
Member

This PR adjusts our acceptance tests for all recent Placeholder changes.

In general, many translations have been updated and in many cases English translations have been added, often ones that have no accents or diacriticals.

A few regressions have happened, mostly around sorting such as pelias/placeholder#55.
Two tests are temporarily marked failing because the names somehow had trailing spaces added, but both cases have been fixed via Boundary Issues and should resolve soon.

With this, combined with the changes in #434 and #437, which handle PIP and empire/dependency related issues respectively, we should be pretty much back to zero failing tests.

This PR can be tested against Mapzen Search dev only, as nowhere else has updated placeholder data

"in": {
"text": "pärnu, estonia"
},
"expected": {
"properties": [
{
"name": "Parnu",
"region": "Pärnumaa",
"region": "Pärnu County",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't mix the english names with those special characters. if we selected this test because we wanted to see appropriate accents in the results then it should be ok to add the language parameter that exposes the accents in the results.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion. I've changed the output language to Estonia, and created another acceptance test to track the related sorting issue.

Malmo now comes back in English as Malmo, while specifying `lang=sv`
keeps the umlaut. Capture both cases in a test.
Some WOF records have added trailing spaces to names. Hopefully it will
be resolved soon.
Labels are generally composed of properties already tested, and when the
label itself is not whats being tested, generally should not be tested.
This is necessary due to a sorting bug, but for this test in particular
we only care about the encoding aspect
Placeholder does not yet handle Empires:
ttps://github.com/pelias/placeholder/issues/54
This was exposed due to our new admin lookup strategy and is tracked in
pelias/wof-admin-lookup#156
@orangejulius
Copy link
Member Author

Okay, this PR is ready to be looked at again and now brings us back to all passing tests on dev.

These streets are now returned with the latest placeholder data!
@orangejulius orangejulius merged commit b9b2c7e into master Sep 29, 2017
@ghost ghost removed the in review label Sep 29, 2017
@orangejulius orangejulius deleted the placeholder-new-data branch October 23, 2017 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants