mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
improve test coverage for reverse and debug output
This commit is contained in:
@@ -75,3 +75,19 @@ Feature: Reverse geocoding
|
||||
| 2 |
|
||||
| 3 |
|
||||
| 4 |
|
||||
|
||||
Scenario: When on a street, the closest interpolation is shown
|
||||
When sending jsonv2 reverse coordinates -33.2309430210215,-54.38126470020989
|
||||
| zoom |
|
||||
| 18 |
|
||||
Then results contain
|
||||
| display_name |
|
||||
| 1429, Andrés Areguati, Treinta y Tres, 33000, Uruguay |
|
||||
|
||||
Scenario: When on a street with zoom 18, the closest housenumber is returned
|
||||
When sending jsonv2 reverse coordinates 53.551826690895226,9.885258475318201
|
||||
| zoom |
|
||||
| 18 |
|
||||
Then result addresses contain
|
||||
| house_number |
|
||||
| 33 |
|
||||
|
||||
@@ -233,6 +233,17 @@ Feature: Simple Tests
|
||||
When sending xml search query "Vaduz"
|
||||
| countrycodes |
|
||||
| pl,1,,invalid,undefined,%3Cb%3E,bo,, |
|
||||
Then result header contains
|
||||
Then result header contains
|
||||
| attr | value |
|
||||
| more_url | .*&countrycodes=pl%2Cbo&.* |
|
||||
|
||||
Scenario Outline: Search with debug prints valid HTML
|
||||
When sending html search query "<query>"
|
||||
| extratags | addressdetails | namedetails | debug |
|
||||
| 1 | 1 | 1 | 1 |
|
||||
Then the result is valid html
|
||||
|
||||
Examples:
|
||||
| query |
|
||||
| 10, Alvierweg, 9490, Vaduz |
|
||||
| Hamburg |
|
||||
|
||||
Reference in New Issue
Block a user