X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0f196952259baddb77bd1c60ffc3b5ef214da179..a4d7cdd2ad7b1e087751e55a56454781aa6580bc:/test/bdd/db/query/postcodes.feature?ds=sidebyside diff --git a/test/bdd/db/query/postcodes.feature b/test/bdd/db/query/postcodes.feature index 78a26a90..fa4f6a0b 100644 --- a/test/bdd/db/query/postcodes.feature +++ b/test/bdd/db/query/postcodes.feature @@ -76,6 +76,7 @@ Feature: Querying fo postcode variants | AD675 | + @fail-legacy Scenario: Different postcodes with the same normalization can both be found Given the places | osm | class | type | addr+postcode | addr+housenumber | geometry | @@ -95,3 +96,21 @@ Feature: Querying fo postcode variants | type | display_name | | postcode | E4 7EA, United Kingdom | + + @fail-legacy + @v1-api-python-only + Scenario: Postcode areas are preferred over postcode points + Given the grid with origin DE + | 1 | 2 | + | 4 | 3 | + Given the places + | osm | class | type | postcode | geometry | + | R23 | boundary | postal_code | 12345 | (1,2,3,4,1) | + When importing + Then location_postcode contains exactly + | country | postcode | + | de | 12345 | + When sending search query "12345, de" + Then results contain + | osm | + | R23 |