Nominatim/test/bdd/db/import/naming.feature

61 lines
2.3 KiB
Gherkin
Raw Normal View History

2016-11-25 22:53:56 +03:00
@DB
Feature: Import and search of names
Tests all naming related import issues
Scenario: No copying name tag if only one name
Given the places
| osm | class | type | name | geometry |
| N1 | place | locality | german | country:de |
When importing
Then placex contains
2017-03-26 22:19:52 +03:00
| object | country_code | name+name |
| N1 | de | german |
2016-11-25 22:53:56 +03:00
Scenario: Copying name tag to default language if it does not exist
Given the places
| osm | class | type | name | name+name:fi | geometry |
| N1 | place | locality | german | finnish | country:de |
When importing
Then placex contains
2017-03-26 22:19:52 +03:00
| object | country_code | name | name+name:fi | name+name:de |
| N1 | de | german | finnish | german |
2016-11-25 22:53:56 +03:00
Scenario: Copying default language name tag to name if it does not exist
Given the places
| osm | class | type | name+name:de | name+name:fi | geometry |
| N1 | place | locality | german | finnish | country:de |
When importing
Then placex contains
2017-03-26 22:19:52 +03:00
| object | country_code | name | name+name:fi | name+name:de |
| N1 | de | german | finnish | german |
2016-11-25 22:53:56 +03:00
Scenario: Do not overwrite default language with name tag
Given the places
| osm | class | type | name | name+name:fi | name+name:de | geometry |
| N1 | place | locality | german | finnish | local | country:de |
When importing
Then placex contains
2017-03-26 22:19:52 +03:00
| object | country_code | name | name+name:fi | name+name:de |
| N1 | de | german | finnish | local |
2021-04-27 00:01:06 +03:00
Scenario Outline: Names in any script can be found
Given the places
| osm | class | type | name |
| N1 | place | hamlet | <name> |
When importing
And sending search query "<name>"
Then results contain
| osm |
| N1 |
Examples:
| name |
| Berlin |
| |
| Вологда |
| Αθήνα |
| القاهرة |
| |
| |
| |