mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
test: fix format of behave table
This commit is contained in:
@@ -11,11 +11,11 @@ Feature: Update of relations by osm2pgsql
|
||||
n202 x0.0001 y0.0001
|
||||
n203 x0.0001 y0
|
||||
w2 Tref=45' Nn200,n201,n202,n203,n200
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XZ' Mw2@
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XZ Mw2@
|
||||
"""
|
||||
Then place contains
|
||||
| object | class | type | name
|
||||
| R1 | tourism | hotel | 'name' : 'XZ'
|
||||
| object | class | type | name |
|
||||
| R1 | tourism | hotel | 'name' : 'XZ' |
|
||||
When updating osm data
|
||||
"""
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XZ Mn1@
|
||||
@@ -34,16 +34,16 @@ Feature: Update of relations by osm2pgsql
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XZ Mw2@
|
||||
"""
|
||||
Then place contains
|
||||
| object | class | type | name
|
||||
| R1 | tourism | hotel | 'name' : 'XZ'
|
||||
| object | class | type | name |
|
||||
| R1 | tourism | hotel | 'name' : 'XZ' |
|
||||
When updating osm data
|
||||
"""
|
||||
r1 Ttype=multipolygon,amenity=prison,name=XZ Mw2@
|
||||
"""
|
||||
Then place has no entry for R1:tourism
|
||||
And place contains
|
||||
| object | class | type | name
|
||||
| R1 | amenity | prison | 'name' : 'XZ'
|
||||
| object | class | type | name |
|
||||
| R1 | amenity | prison | 'name' : 'XZ' |
|
||||
|
||||
Scenario: Change name of a relation
|
||||
When loading osm data
|
||||
@@ -56,15 +56,15 @@ Feature: Update of relations by osm2pgsql
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=AB Mw2@
|
||||
"""
|
||||
Then place contains
|
||||
| object | class | type | name
|
||||
| R1 | tourism | hotel | 'name' : 'AB'
|
||||
| object | class | type | name |
|
||||
| R1 | tourism | hotel | 'name' : 'AB' |
|
||||
When updating osm data
|
||||
"""
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XY Mw2@
|
||||
"""
|
||||
Then place contains
|
||||
| object | class | type | name
|
||||
| R1 | tourism | hotel | 'name' : 'XZ'
|
||||
| object | class | type | name |
|
||||
| R1 | tourism | hotel | 'name' : 'XY' |
|
||||
|
||||
Scenario: Change type of a relation into something unknown
|
||||
When loading osm data
|
||||
@@ -77,8 +77,8 @@ Feature: Update of relations by osm2pgsql
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XY Mw2@
|
||||
"""
|
||||
Then place contains
|
||||
| object | class | type | name
|
||||
| R1 | tourism | hotel | 'name' : 'XZ'
|
||||
| object | class | type | name |
|
||||
| R1 | tourism | hotel | 'name' : 'XY' |
|
||||
When updating osm data
|
||||
"""
|
||||
r1 Ttype=multipolygon,amenities=prison,name=XY Mw2@
|
||||
@@ -96,8 +96,8 @@ Feature: Update of relations by osm2pgsql
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XY Mw2@
|
||||
"""
|
||||
Then place contains
|
||||
| object | class | type | name
|
||||
| R1 | tourism | hotel | 'name' : 'XZ'
|
||||
| object | class | type | name |
|
||||
| R1 | tourism | hotel | 'name' : 'XY' |
|
||||
When updating osm data
|
||||
"""
|
||||
r1 Ttourism=hotel,name=XY Mw2@
|
||||
@@ -115,8 +115,8 @@ Feature: Update of relations by osm2pgsql
|
||||
r1 Ttype=multipolygon,tourism=hotel,name=XY Mw2@
|
||||
"""
|
||||
Then place contains
|
||||
| object | class | type | name
|
||||
| R1 | tourism | hotel | 'name' : 'XZ'
|
||||
| object | class | type | name |
|
||||
| R1 | tourism | hotel | 'name' : 'XY' |
|
||||
When updating osm data
|
||||
"""
|
||||
r1 Ttype=multipolygonn,tourism=hotel,name=XY Mw2@
|
||||
|
||||
Reference in New Issue
Block a user