X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86d90bc46005c00f2367ad759804f528adc4c6a5..051998dd80b0def50058266b7adbdf2e971032eb:/tests/features/db/import/search_terms.feature diff --git a/tests/features/db/import/search_terms.feature b/tests/features/db/import/search_terms.feature index 642b3ea8..f68fe61c 100644 --- a/tests/features/db/import/search_terms.feature +++ b/tests/features/db/import/search_terms.feature @@ -26,3 +26,17 @@ Feature: Creation of search terms Then search_name table contains | place_id | name_vector | nameaddress_vector | N1 | foo | the road + + Scenario: Roads take over the postcode from attached houses + Given the scene roads-with-pois + And the place nodes + | osm_id | class | type | housenumber | postcode | street | geometry + | 1 | place | house | 1 | 12345 | North St |:p-S1 + And the place ways + | osm_id | class | type | name | geometry + | 1 | highway | residential | North St | :w-north + When importing + Then search_name table contains + | place_id | nameaddress_vector + | W1 | 12345 +