]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/steps/steps_osm_data.py
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / bdd / steps / steps_osm_data.py
index 20d327df5434cbe58441646953c4e46c6f3a2eba..7590b17c9c81c7a97c4f9cfc0bdf339db2cc4405 100644 (file)
@@ -123,3 +123,11 @@ def update_from_osm_file(context):
                               get_osm2pgsql_options(context.nominatim, fname, append=True))
     finally:
         os.remove(fname)
+
+@when('indexing')
+def index_database(context):
+    """
+    Run the Nominatim indexing step. This will process data previously
+    loaded with 'updating osm data'
+    """
+    context.nominatim.run_nominatim('index')