mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
add osm2pgsql update tests
This commit is contained in:
26
test/bdd/osm2pgsql/update/simple.feature
Normal file
26
test/bdd/osm2pgsql/update/simple.feature
Normal file
@@ -0,0 +1,26 @@
|
||||
@DB
|
||||
Feature: Update of simple objects by osm2pgsql
|
||||
Testing basic update functions of osm2pgsql.
|
||||
|
||||
Scenario: Import object with two main tags
|
||||
When loading osm data
|
||||
"""
|
||||
n1 Ttourism=hotel,amenity=restaurant,name=foo
|
||||
n2 Tplace=locality,name=spotty
|
||||
"""
|
||||
Then place contains
|
||||
| object | type | name
|
||||
| N1:tourism | hotel | 'name' : 'foo'
|
||||
| N1:amenity | restaurant | 'name' : 'foo'
|
||||
| N2:place | locality | 'name' : 'spotty'
|
||||
When updating osm data
|
||||
"""
|
||||
n1 dV Ttourism=hotel,name=foo
|
||||
n2 dD
|
||||
"""
|
||||
Then place has no entry for N1:amenity
|
||||
And place has no entry for N2
|
||||
And place contains
|
||||
| object | class | type | name
|
||||
| N1:tourism | tourism | hotel | 'name' : 'foo'
|
||||
|
||||
Reference in New Issue
Block a user