-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
test_cases/encoding.json
Outdated
"in": { | ||
"text": "pärnu, estonia" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"name": "Parnu", | ||
"region": "Pärnumaa", | ||
"region": "Pärnu County", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
ee1a3e4
to
7456c21
Compare
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
7456c21
to
1efb626
Compare
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!
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