mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-07 02:24:08 +00:00
adapt API tests to latest data
This commit is contained in:
@@ -6,7 +6,7 @@ Feature: API regression tests
|
|||||||
When sending json search query "<query>" with address
|
When sending json search query "<query>" with address
|
||||||
Then result addresses contain
|
Then result addresses contain
|
||||||
| ID | road | city
|
| ID | road | city
|
||||||
| 0 | Seegasse | Gemeinde Wieselburg-Land
|
| 0 | Seegasse | Wieselburg-Land
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| query
|
| query
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ Feature: Search queries
|
|||||||
Scenario: House number search for non-street address
|
Scenario: House number search for non-street address
|
||||||
Given the request parameters
|
Given the request parameters
|
||||||
| accept-language
|
| accept-language
|
||||||
| en
|
| en
|
||||||
When sending json search query "4 Pomocnia, Poland" with address
|
When sending json search query "4 Pomocnia, Pokrzywnica, Poland" with address
|
||||||
Then address of result 0 is
|
Then address of result 0 is
|
||||||
| type | value
|
| type | value
|
||||||
| house_number | 4
|
| house_number | 4
|
||||||
| suburb | Pomocnia
|
| city | Pomocnia
|
||||||
| county | gmina Pokrzywnica
|
| county | gmina Pokrzywnica
|
||||||
| state | Masovian Voivodeship
|
| state | Masovian Voivodeship
|
||||||
| postcode | 06-121
|
| postcode | 06-121
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ Feature: Result order for Geocoding
|
|||||||
Testing that importance ordering returns sensible results
|
Testing that importance ordering returns sensible results
|
||||||
|
|
||||||
Scenario Outline: city order in street search
|
Scenario Outline: city order in street search
|
||||||
|
Given the request parameters
|
||||||
|
| limit
|
||||||
|
| 100
|
||||||
When sending json search query "<street>, <city>" with address
|
When sending json search query "<street>, <city>" with address
|
||||||
Then address of result 0 contains
|
Then address of result 0 contains
|
||||||
| type | value
|
| type | value
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ Feature: Search queries
|
|||||||
| type | value
|
| type | value
|
||||||
| city | Inuvik
|
| city | Inuvik
|
||||||
| state | Northwest Territories
|
| state | Northwest Territories
|
||||||
|
| postcode | X0E 0T0
|
||||||
| country | Canada
|
| country | Canada
|
||||||
| country_code | ca
|
| country_code | ca
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user