]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/steps/db_ops.py
add osm2pgsql broken data tests
[nominatim.git] / test / bdd / steps / db_ops.py
index 77f279bf85fe86853281105a8acd4083aa7d311b..a3cafa016746c2c711a0d6448903aea1fd924bbd 100644 (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'])