]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/update/search_terms.feature
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / bdd / db / update / search_terms.feature
1 @DB
2 Feature: Update of search terms
3     Tests that search_name table is updated correctly
4
5     Scenario: POI-inherited postcode remains when another POI is deleted
6         Given the scene roads-with-pois
7         And the places
8          | osm | class | type  | housenr | postcode | street   | geometry |
9          | N1  | place | house | 1       | 12345    | North St |:p-S1 |
10          | N2  | place | house | 2       |          | North St |:p-S2 |
11         And the places
12          | osm | class   | type        | name     | geometry |
13          | W1  | highway | residential | North St | :w-north |
14         When importing
15         Then search_name contains
16          | object | nameaddress_vector |
17          | W1     | 12345 |
18         When marking for delete N2
19         Then search_name contains
20          | object | nameaddress_vector |
21          | W1     | 12345 |