mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
bdd: complete coverage for API tests
Also removes some functions that are no longer used and fixes debug output where the tests found an issue.
This commit is contained in:
@@ -25,6 +25,39 @@ Feature: Parameters for Reverse API
|
||||
| -45.3,; |
|
||||
| gkjd,50 |
|
||||
|
||||
Scenario Outline: Zoom levels between 4 and 18 are allowed
|
||||
When sending reverse coordinates 47.14122383,9.52169581334
|
||||
| zoom |
|
||||
| <zoom> |
|
||||
Then exactly 1 result is returned
|
||||
And result addresses contain
|
||||
| country_code |
|
||||
| li |
|
||||
|
||||
Examples:
|
||||
| zoom |
|
||||
| 4 |
|
||||
| 5 |
|
||||
| 6 |
|
||||
| 7 |
|
||||
| 8 |
|
||||
| 9 |
|
||||
| 10 |
|
||||
| 11 |
|
||||
| 12 |
|
||||
| 13 |
|
||||
| 14 |
|
||||
| 15 |
|
||||
| 16 |
|
||||
| 17 |
|
||||
| 18 |
|
||||
|
||||
Scenario: Non-numerical zoom levels return an error
|
||||
When sending reverse coordinates 47.14122383,9.52169581334
|
||||
| zoom |
|
||||
| adfe |
|
||||
Then a HTTP 400 is returned
|
||||
|
||||
Scenario Outline: Reverse Geocoding with extratags
|
||||
When sending <format> reverse coordinates 47.1395013150811,9.522098077031046
|
||||
| extratags |
|
||||
|
||||
Reference in New Issue
Block a user