add osm2pgsql broken data tests

This commit is contained in:
Sarah Hoffmann
2016-11-28 23:27:40 +01:00
parent f2debbef19
commit e2f23e391b
2 changed files with 35 additions and 1 deletions

View File

@@ -296,7 +296,8 @@ def check_placex_contents(context, exact):
for row in context.table:
nid = NominatimID(row['object'])
where, params = nid.table_select()
cur.execute("""SELECT *, ST_AsText(geometry) as geomtxt
cur.execute("""SELECT *, ST_AsText(geometry) as geomtxt,
ST_GeometryType(geometry) as geometrytype
FROM place where %s""" % where,
params)
assert_less(0, cur.rowcount, "No rows found for " + row['object'])