mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
add tests for interpolation updates
This commit is contained in:
@@ -314,8 +314,8 @@ def check_search_name_contents(context):
|
||||
|
||||
context.db.commit()
|
||||
|
||||
@then("(?P<oid>\w+) expands to interpolation")
|
||||
def check_location_property_osmline(context, oid):
|
||||
@then("(?P<oid>\w+) expands to(?P<neg> no)? interpolation")
|
||||
def check_location_property_osmline(context, oid, neg):
|
||||
cur = context.db.cursor(cursor_factory=psycopg2.extras.DictCursor)
|
||||
nid = NominatimID(oid)
|
||||
|
||||
@@ -325,6 +325,10 @@ def check_location_property_osmline(context, oid):
|
||||
FROM location_property_osmline WHERE osm_id = %s""",
|
||||
(nid.oid, ))
|
||||
|
||||
if neg:
|
||||
eq_(0, cur.rowcount)
|
||||
return
|
||||
|
||||
todo = list(range(len(list(context.table))))
|
||||
for res in cur:
|
||||
for i in todo:
|
||||
|
||||
Reference in New Issue
Block a user