mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add remaining db update tests
This commit is contained in:
21
test/bdd/db/update/search_terms.feature
Normal file
21
test/bdd/db/update/search_terms.feature
Normal file
@@ -0,0 +1,21 @@
|
||||
@DB
|
||||
Feature: Update of search terms
|
||||
Tests that search_name table is updated correctly
|
||||
|
||||
Scenario: POI-inherited postcode remains when another POI is deleted
|
||||
Given the scene roads-with-pois
|
||||
And the places
|
||||
| osm | class | type | housenr | postcode | street | geometry |
|
||||
| N1 | place | house | 1 | 12345 | North St |:p-S1 |
|
||||
| N2 | place | house | 2 | | North St |:p-S2 |
|
||||
And the places
|
||||
| osm | class | type | name | geometry |
|
||||
| W1 | highway | residential | North St | :w-north |
|
||||
When importing
|
||||
Then search_name contains
|
||||
| object | nameaddress_vector |
|
||||
| W1 | 12345 |
|
||||
When marking for delete N2
|
||||
Then search_name contains
|
||||
| object | nameaddress_vector |
|
||||
| W1 | 12345 |
|
||||
Reference in New Issue
Block a user