bdd: test placex content when updating with osm2pgsql

This commit is contained in:
Sarah Hoffmann
2022-11-14 14:48:44 +01:00
parent 36cf0eb922
commit a46348da38
3 changed files with 173 additions and 88 deletions

View 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')