mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
slightly relax API tests
This commit is contained in:
@@ -18,15 +18,15 @@ Feature: Search queries
|
|||||||
| accept-language
|
| accept-language
|
||||||
| en
|
| en
|
||||||
When sending json search query "4 Pomocnia, Pokrzywnica, 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 contains
|
||||||
| type | value
|
| type | value
|
||||||
| house_number | 4
|
| house_number | 4
|
||||||
| city | Pomocnia
|
|
||||||
| county | gmina Pokrzywnica
|
| county | gmina Pokrzywnica
|
||||||
| state | Masovian Voivodeship
|
| state | Masovian Voivodeship
|
||||||
| postcode | 06-121
|
| postcode | 06-121
|
||||||
| country | Poland
|
| country | Poland
|
||||||
| country_code | pl
|
| country_code | pl
|
||||||
|
Then address of result 0 does not contain road
|
||||||
|
|
||||||
Scenario: House number interpolation even
|
Scenario: House number interpolation even
|
||||||
Given the request parameters
|
Given the request parameters
|
||||||
@@ -56,10 +56,12 @@ Feature: Search queries
|
|||||||
| country | Canada
|
| country | Canada
|
||||||
| country_code | ca
|
| country_code | ca
|
||||||
|
|
||||||
|
@Tiger
|
||||||
Scenario: TIGER house number
|
Scenario: TIGER house number
|
||||||
When sending json search query "3 West Victory Way, Craig"
|
When sending json search query "3 West Victory Way, Craig"
|
||||||
Then result 0 has not attributes osm_id,osm_type
|
Then result 0 has not attributes osm_id,osm_type
|
||||||
|
|
||||||
|
@Tiger
|
||||||
Scenario: TIGER house number (road fallback)
|
Scenario: TIGER house number (road fallback)
|
||||||
When sending json search query "3030 West Victory Way, Craig"
|
When sending json search query "3030 West Victory Way, Craig"
|
||||||
Then result 0 has attributes osm_id,osm_type
|
Then result 0 has attributes osm_id,osm_type
|
||||||
|
|||||||
@@ -27,11 +27,10 @@ Feature: Search queries
|
|||||||
|
|
||||||
Scenario: XML search with addressdetails
|
Scenario: XML search with addressdetails
|
||||||
When sending xml search query "Inuvik" with address
|
When sending xml search query "Inuvik" with address
|
||||||
Then address of result 0 is
|
Then address of result 0 contains
|
||||||
| 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